on master help sign in
fix clippy warnings (#804)
c4ae17dIrevoire
helix-term/src/commands.rs+2−2
@@ -2346,10 +2346,10 @@ mod cmd {
2346
2346
2347 pub static COMMANDS: Lazy<HashMap<&'static str, &'static TypableCommand>> = Lazy::new(|| {
2347 pub static COMMANDS: Lazy<HashMap<&'static str, &'static TypableCommand>> = Lazy::new(|| {
2348 TYPABLE_COMMAND_LIST
2348 TYPABLE_COMMAND_LIST
2349− .into_iter()
2349+ .iter()
2350 .flat_map(|cmd| {
2350 .flat_map(|cmd| {
2351 std::iter::once((cmd.name, cmd))
2351 std::iter::once((cmd.name, cmd))
2352− .chain(cmd.aliases.into_iter().map(move |&alias| (alias, cmd)))
2352+ .chain(cmd.aliases.iter().map(move |&alias| (alias, cmd)))
2353 })
2353 })
2354 .collect()
2354 .collect()
2355 });
2355 });