Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
postsolar committed Apr 6, 2024
1 parent 63bafa2 commit 19dcd4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions helix-term/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ impl Config {
(Ok(global), Ok(local)) => {
let mut keys;
match local.unbind_default_keys {
true => keys = HashMap::default(),
false => keys = keymap::default(),
true => keys = HashMap::default(),
false => keys = keymap::default(),
}
if let Some(global_keys) = global.keys {
merge_keys(&mut keys, global_keys)
Expand Down Expand Up @@ -104,8 +104,8 @@ impl Config {
(Ok(config), Err(_)) | (Err(_), Ok(config)) => {
let mut keys;
match config.unbind_default_keys {
true => keys = HashMap::default(),
false => keys = keymap::default(),
true => keys = HashMap::default(),
false => keys = keymap::default(),
}
if let Some(keymap) = config.keys {
merge_keys(&mut keys, keymap);
Expand Down
4 changes: 2 additions & 2 deletions helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ impl Keymaps {
// TODO: remove the sticky part and look up manually
let keymaps = &*self.map();
let keymap = match keymaps.get(&mode) {
Some(keymap) => keymap,
None => return KeymapResult::NotFound,
Some(keymap) => keymap,
None => return KeymapResult::NotFound,
};

if key!(Esc) == key {
Expand Down

0 comments on commit 19dcd4d

Please sign in to comment.