Fix all auto-fix from clippy

This commit is contained in:
Chris Glass 2026-04-10 18:09:25 +02:00
parent c8b18c2827
commit f50ece41eb
5 changed files with 63 additions and 105 deletions

View file

@ -245,12 +245,11 @@ impl ShortcutsConfig {
// Remove any matching bindings
return false;
}
if let Some(default_action) = self.defaults.0.get(binding) {
if *default_action == reset_action {
if let Some(default_action) = self.defaults.0.get(binding)
&& *default_action == reset_action {
// Remove binding that overrode a default
return false;
}
}
true
});
}