Skip to content

Commit c3679bb

Browse files
committed
fix use is_empty rather check len
1 parent 18434c0 commit c3679bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ impl Reedline {
967967
return Ok(EventStatus::Handled);
968968
}
969969

970-
if menu.get_values().len() == 0 {
970+
if menu.get_values().is_empty() {
971971
menu.menu_event(MenuEvent::Deactivate);
972972
return Ok(EventStatus::Inapplicable);
973973
}

0 commit comments

Comments
 (0)