Skip to content

Commit 2a7a649

Browse files
committed
fix use is_empty rather check len
1 parent ee907e7 commit 2a7a649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ impl Reedline {
879879
return Ok(EventStatus::Handled);
880880
}
881881

882-
if menu.get_values().len() == 0 {
882+
if menu.get_values().is_empty() {
883883
menu.menu_event(MenuEvent::Deactivate);
884884
return Ok(EventStatus::Inapplicable);
885885
}

0 commit comments

Comments
 (0)