From bfce61a044a6c2a91905a193d6fb01824bbddebf 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 0754b2c8..4fa4c644 100644 --- a/src/compiler/sexp.rs +++ b/src/compiler/sexp.rs @@ -541,7 +541,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