Skip to content

Commit

Permalink
ran nightly cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Jul 23, 2024
1 parent e8f03ed commit 9ae72e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/menu/menu_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ where

let menu_state = tree.state.downcast_ref::<MenuState>();
let slice = &menu_state.slice;
let max_item_slice = self.items.len()-1.min(slice.end_index);
let max_tree_slice = tree.children.len()-1.min(slice.end_index);
let max_item_slice = self.items.len() - 1.min(slice.end_index);
let max_tree_slice = tree.children.len() - 1.min(slice.end_index);

self.items[slice.start_index..=max_item_slice]
.iter()
Expand Down

0 comments on commit 9ae72e6

Please sign in to comment.