Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed May 2, 2024
1 parent 2dc82ba commit 65f769b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions parser/src/cfg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ fn parse_layer_indexes(
let mut cfg_third = 0;
if let Some(third) = subexprs.peek() {
if let Some(third_list) = third.list(None) {
if third_list.len() > 0 {
if !third_list.is_empty() {
if let Some(third_list_1st_s) = &third_list[0].atom(None) {
if DEFLAYER_ICON.iter().any(|&i| i == *third_list_1st_s) {
cfg_third = 1;
Expand Down Expand Up @@ -1429,11 +1429,7 @@ fn parse_action_as_cfg(expr: &SExpr) -> bool {
if !DEFLAYER_ICON.iter().any(|&i| i == *expr_list_1st) {
return false;
} else {
if expr_list[1].atom(None).is_some() {
return true;
} else {
return false;
}
return expr_list[1].atom(None).is_some()
}
}
}
Expand Down

0 comments on commit 65f769b

Please sign in to comment.