use implicit iter loops (clippy::explicit_iter_loop)

This commit is contained in:
Daniel Eades 2024-04-14 21:09:14 +01:00 committed by Jeremy Soller
parent de6f48a951
commit 89174c5e0d
4 changed files with 10 additions and 10 deletions

View file

@ -26,7 +26,7 @@ pub fn context_menu<'a>(
entity: segmented_button::Entity,
) -> Element<'a, Message> {
let find_key = |action: &Action| -> String {
for (key_bind, key_action) in key_binds.iter() {
for (key_bind, key_action) in key_binds {
if action == key_action {
return key_bind.to_string();
}