From ddc48d4d66e789c6101e370e1637b40665f78359 Mon Sep 17 00:00:00 2001 From: metafates Date: Fri, 19 Apr 2024 09:37:23 +0300 Subject: [PATCH] apply clippy suggestions --- helix-term/src/ui/editor.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 0640f1831..f08fd11c3 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1640,7 +1640,7 @@ fn get_ids_of_duplicate_paths( } fn adjust_paths_levels(levels: &mut HashMap) { - while let Some(duplicates) = get_ids_of_duplicate_paths(&levels) { + while let Some(duplicates) = get_ids_of_duplicate_paths(levels) { for id in duplicates { if let Some(level) = levels.get_mut(&id) { level.increment() @@ -1655,10 +1655,9 @@ fn build_bufferline_paths(editor: &Editor) -> HashMap