Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Sep 5, 2023
1 parent 0cd637c commit b933712
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 @@ -539,7 +539,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 b933712

Please sign in to comment.