Skip to content

Commit

Permalink
cargo fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mixy1 committed Sep 9, 2024
1 parent dd84272 commit e3b501b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/hotkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -467,4 +471,4 @@ fn test_equality() {
&& h4.id() == h5.id()
&& h5.id() != h6.id()
);
}
}

0 comments on commit e3b501b

Please sign in to comment.