From b933712ad425a857338f4d8dd337e84fb53a30ca Mon Sep 17 00:00:00 2001 From: Matthew Howard Date: Tue, 5 Sep 2023 13:39:53 +0100 Subject: [PATCH] clippy fix --- src/compiler/sexp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sexp.rs b/src/compiler/sexp.rs index 2bbfcf2be..c49b369ed 100644 --- a/src/compiler/sexp.rs +++ b/src/compiler/sexp.rs @@ -539,7 +539,7 @@ fn restructure_list(mut this_list: Vec>, srcloc: Srcloc) -> Rc { 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