mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-22 04:33:22 +03:00
style(fmt): remove warnings
This commit is contained in:
parent
ebdf16e567
commit
0012a676d2
@ -69,7 +69,6 @@ impl KeyShortcut {
|
||||
KeyModifier::Alt => "^A",
|
||||
KeyModifier::Super => "^Su",
|
||||
KeyModifier::Shift => "^Sh",
|
||||
_ => "",
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
.join("-");
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user