diff options
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<HashMap<&'static str, &'static TypableCommand>> = 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() }); |