style(fmt): remove warnings

This commit is contained in:
Aram Drevekenin 2024-11-19 09:55:29 +01:00
parent ebdf16e567
commit 0012a676d2
2 changed files with 0 additions and 3 deletions

View File

@ -69,7 +69,6 @@ impl KeyShortcut {
KeyModifier::Alt => "^A",
KeyModifier::Super => "^Su",
KeyModifier::Shift => "^Sh",
_ => "",
})
.collect::<Vec<_>>()
.join("-");

View File

@ -73,8 +73,6 @@ impl TryFrom<KeyModifier> for ProtobufKeyModifier {
KeyModifier::Alt => Ok(ProtobufKeyModifier::Alt),
KeyModifier::Shift => Ok(ProtobufKeyModifier::Shift),
KeyModifier::Super => Ok(ProtobufKeyModifier::Super),
_ => Err("unsupported key modifier"), // TODO: test this so we don't crash if we have a
// Capslock or something
}
}
}