mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 19:58:12 +03:00
fix clippy warnings (#804)
This commit is contained in:
parent
7e958e1834
commit
c4ae17dfd4
@ -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()
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user