diff --git a/src/engine.rs b/src/engine.rs index 794d40e9..6e0b6c33 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -967,7 +967,7 @@ impl Reedline { return Ok(EventStatus::Handled); } - if menu.get_values().len() == 0 { + if menu.get_values().is_empty() { menu.menu_event(MenuEvent::Deactivate); return Ok(EventStatus::Inapplicable); }