diff options
author | Irevoire | 2021-10-03 03:40:33 +0000 |
---|---|---|
committer | GitHub | 2021-10-03 03:40:33 +0000 |
commit | c4ae17dfd4d2c0eba2d3f7a6011a9b7c33bff114 (patch) | |
tree | ed7ff7e58c032df72f8bbf29b4c03fb511a6096d /helix-term/src/commands.rs | |
parent | 7e958e1834f555724bb73db0091d66365abd63a3 (diff) |
fix clippy warnings (#804)
Diffstat (limited to 'helix-term/src/commands.rs')
-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() }); |