fix clippy warnings (#804)
commitc4ae17dfd4d2c0eba2d3f7a6011a9b7c33bff114
authorIrevoire <tamo@meilisearch.com>
dateSun 3 Oct 2021, 05:40 (5 years ago)
parent7e958e1
helix-term/src/commands.rs+2−2
@@ -2346,10 +2346,10 @@ mod cmd {
23462346
23472347 pub static COMMANDS: Lazy<HashMap<&'static str, &'static TypableCommand>> = Lazy::new(|| {
23482348 TYPABLE_COMMAND_LIST
2349− .into_iter()
2349+ .iter()
23502350 .flat_map(|cmd| {
23512351 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)))
23532353 })
23542354 .collect()
23552355 });