diff --git a/src/main.rs b/src/main.rs index 1457a3a..556f39c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,9 +120,7 @@ fn main() { let actions = get_actions(); let selected_action = actions - .iter() - .filter(|p| p.name.eq(&action)) - .next(); + .iter().find(|p| p.name.eq(&action)); let selected_action = match selected_action { None => {