Fix lint issues

pull/997/head
Omnikar 3 years ago
parent d18d745392
commit 94eade9dd7
No known key found for this signature in database
GPG Key ID: 7DE6694CDA7885ED

@ -2841,7 +2841,7 @@ pub mod cmd {
let mode = doc!(editor).mode; let mode = doc!(editor).mode;
let keymap = editor_view.keymaps.get_mut(&mode).unwrap(); let keymap = editor_view.keymaps.get_mut(&mode).unwrap();
let (keys, last_key) = (&keys[..keys.len() - 1], keys.last().unwrap()); let (keys, last_key) = (&keys[..keys.len() - 1], keys.last().unwrap());
keys.into_iter().for_each(|key| { keys.iter().for_each(|key| {
keymap.get(*key); keymap.get(*key);
}); });
let result = keymap.get(*last_key); let result = keymap.get(*last_key);
@ -2865,7 +2865,7 @@ pub mod cmd {
} }
}; };
open_help(help_dir, command, &mut cx.editor) open_help(help_dir, command, cx.editor)
} }
pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[

Loading…
Cancel
Save