Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
latidoremi committed Feb 23, 2024
1 parent 87c092f commit 082301b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/native/menu/menu_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ where
}
DrawPath::FakeHovering => {
if !cursor.is_over(active_bounds) {
cursor = mouse::Cursor::Available(active_bounds.center())
cursor = mouse::Cursor::Available(active_bounds.center());
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/native/menu/menu_bar_overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ where
}

rec(
&self.draw_path,
self.draw_path,
active_tree,
active_root,
&mut menu_layouts,
Expand All @@ -500,7 +500,7 @@ where
let mut lc = layout.children();
let _bar_bounds = lc.next().unwrap().bounds();
let _roots_layout = lc.next().unwrap();
let Some(menu_layouts) = lc.next().map(|l| l.children()) else {
let Some(menu_layouts) = lc.next().map(Layout::children) else {
return false;
}; // [menu_node...]

Expand Down

0 comments on commit 082301b

Please sign in to comment.