chore: cargo +nightly fmt
This commit is contained in:
parent
5782cb927e
commit
6f863f1905
1 changed files with 7 additions and 2 deletions
|
|
@ -44,7 +44,12 @@ impl KeyBind {
|
||||||
/// # Returns
|
/// # Returns
|
||||||
///
|
///
|
||||||
/// * `bool` - `true` if the key and modifiers match the `KeyBind`, `false` otherwise.
|
/// * `bool` - `true` if the key and modifiers match the `KeyBind`, `false` otherwise.
|
||||||
pub fn matches(&self, modifiers: Modifiers, key: &Key, physical_key: Option<&Physical>) -> bool {
|
pub fn matches(
|
||||||
|
&self,
|
||||||
|
modifiers: Modifiers,
|
||||||
|
key: &Key,
|
||||||
|
physical_key: Option<&Physical>,
|
||||||
|
) -> bool {
|
||||||
let key_eq = self.key_eq(key)
|
let key_eq = self.key_eq(key)
|
||||||
|| physical_key
|
|| physical_key
|
||||||
.and_then(physical_key_to_latin)
|
.and_then(physical_key_to_latin)
|
||||||
|
|
@ -132,4 +137,4 @@ impl fmt::Display for KeyBind {
|
||||||
other => write!(f, "{:?}", other),
|
other => write!(f, "{:?}", other),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue