From 9ae72e6fc84dcfd96065a75fa1697953aafc1b31 Mon Sep 17 00:00:00 2001 From: genusistimelord Date: Tue, 23 Jul 2024 16:12:06 -0400 Subject: [PATCH] ran nightly cargo fmt --- src/widgets/menu/menu_tree.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/menu/menu_tree.rs b/src/widgets/menu/menu_tree.rs index e1a5448d..794afb10 100644 --- a/src/widgets/menu/menu_tree.rs +++ b/src/widgets/menu/menu_tree.rs @@ -390,8 +390,8 @@ where let menu_state = tree.state.downcast_ref::(); 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()