diff --git a/rust/flower-field/src/lib.rs b/rust/flower-field/src/lib.rs index 22984c8..e526d67 100644 --- a/rust/flower-field/src/lib.rs +++ b/rust/flower-field/src/lib.rs @@ -21,7 +21,7 @@ impl NeighbourCounter for [&str] { } pub fn annotate(garden: &[&str]) -> Vec { - if 0 == garden.len() { + if garden.is_empty() { return vec![]; } (0..garden.len())