use implicit iter loops (clippy::explicit_iter_loop)
This commit is contained in:
parent
de6f48a951
commit
89174c5e0d
4 changed files with 10 additions and 10 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue