mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: fix some strict clippy warnings
This commit is contained in:
parent
87a6523367
commit
5136637752
6 changed files with 51 additions and 60 deletions
|
@ -109,8 +109,7 @@ impl Module<gtk::Box> for TrayModule {
|
|||
) -> Result<ModuleParts<gtk::Box>> {
|
||||
let orientation = self
|
||||
.direction
|
||||
.map(Orientation::from)
|
||||
.unwrap_or(info.bar_position.orientation());
|
||||
.map_or(info.bar_position.orientation(), Orientation::from);
|
||||
|
||||
// We use a `Box` here instead of the (supposedly correct) `MenuBar`
|
||||
// as the latter has issues on Sway with menus focus-stealing from the bar.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue