diff --git a/src/hotkey.rs b/src/hotkey.rs index 8c0d363..def8669 100644 --- a/src/hotkey.rs +++ b/src/hotkey.rs @@ -91,7 +91,11 @@ impl HotKey { mods.insert(Modifiers::SUPER); } - Self { mods, key, id: (mods.bits() as u32) << 16 | key as u32} + Self { + mods, + key, + id: mods.bits() << 16 | key as u32, + } } /// Returns the id associated with this hotKey @@ -467,4 +471,4 @@ fn test_equality() { && h4.id() == h5.id() && h5.id() != h6.id() ); -} \ No newline at end of file +}