From c4ae17dfd4d2c0eba2d3f7a6011a9b7c33bff114 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Sun, 3 Oct 2021 05:40:33 +0200 Subject: fix clippy warnings (#804) --- helix-term/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 673d06af..ec76c81d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2346,10 +2346,10 @@ mod cmd { pub static COMMANDS: Lazy> = Lazy::new(|| { TYPABLE_COMMAND_LIST - .into_iter() + .iter() .flat_map(|cmd| { std::iter::once((cmd.name, cmd)) - .chain(cmd.aliases.into_iter().map(move |&alias| (alias, cmd))) + .chain(cmd.aliases.iter().map(move |&alias| (alias, cmd))) }) .collect() }); -- cgit v1.2.3-70-g09d2