From 94eade9dd7ab4516cf64aed1b1e5eee1621139e6 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Fri, 31 Dec 2021 12:50:06 -0500 Subject: [PATCH] Fix lint issues --- helix-term/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index dcf76d2e5..5aacd8f1d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2841,7 +2841,7 @@ pub mod cmd { let mode = doc!(editor).mode; let keymap = editor_view.keymaps.get_mut(&mode).unwrap(); let (keys, last_key) = (&keys[..keys.len() - 1], keys.last().unwrap()); - keys.into_iter().for_each(|key| { + keys.iter().for_each(|key| { keymap.get(*key); }); let result = keymap.get(*last_key); @@ -2865,7 +2865,7 @@ pub mod cmd { } }; - open_help(help_dir, command, &mut cx.editor) + open_help(help_dir, command, cx.editor) } pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[