Do not clone Key

This commit is contained in:
Jeremy Soller 2024-02-08 16:03:13 -07:00
parent 2688dd0d88
commit ae2d49d711
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 19 additions and 19 deletions

View file

@ -1391,7 +1391,7 @@ impl Application for App {
}
Message::Key(modifiers, key) => {
for (key_bind, action) in self.key_binds.iter() {
if key_bind.matches(modifiers, key.clone()) {
if key_bind.matches(modifiers, &key) {
return self.update(action.message());
}
}