Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Oct 10, 2023
1 parent 5dd8894 commit bfce61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/sexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ fn restructure_list(mut this_list: Vec<Rc<SExp>>, srcloc: Srcloc) -> Rc<SExp> {
if this_list.len() == 1 {
return Rc::clone(&this_list[0]);
}
if this_list.len() == 0 {
if this_list.is_empty() {
return Rc::new(SExp::Nil(srcloc.clone()));
}
// Remove and get the middle element as the root
Expand Down

0 comments on commit bfce61a

Please sign in to comment.