use dedicated method for iterating over map keys (clippy::for_kv_map)
This commit is contained in:
parent
f8c23b2ef1
commit
e3a0d8c6dd
1 changed files with 2 additions and 2 deletions
|
|
@ -598,7 +598,7 @@ where
|
||||||
modifiers,
|
modifiers,
|
||||||
..
|
..
|
||||||
}) if state.is_focused => {
|
}) if state.is_focused => {
|
||||||
for (key_bind, _) in &self.key_binds {
|
for key_bind in self.key_binds.keys() {
|
||||||
if key_bind.matches(modifiers, &Key::Named(named)) {
|
if key_bind.matches(modifiers, &Key::Named(named)) {
|
||||||
return Status::Captured;
|
return Status::Captured;
|
||||||
}
|
}
|
||||||
|
|
@ -741,7 +741,7 @@ where
|
||||||
key,
|
key,
|
||||||
..
|
..
|
||||||
}) if state.is_focused => {
|
}) if state.is_focused => {
|
||||||
for (key_bind, _) in &self.key_binds {
|
for key_bind in self.key_binds.keys() {
|
||||||
if key_bind.matches(modifiers, &key) {
|
if key_bind.matches(modifiers, &key) {
|
||||||
return Status::Captured;
|
return Status::Captured;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue