From 19dcd4d40498672572b4db7f76b86326f39c897f Mon Sep 17 00:00:00 2001 From: postsolar <120750161+postsolar@users.noreply.github.com> Date: Fri, 19 Jan 2024 22:25:28 +0200 Subject: [PATCH] Fix lint issues --- helix-term/src/config.rs | 8 ++++---- helix-term/src/keymap.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/helix-term/src/config.rs b/helix-term/src/config.rs index 9372cd1d8764e..ef559eca2a16a 100644 --- a/helix-term/src/config.rs +++ b/helix-term/src/config.rs @@ -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) @@ -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); diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index cb3d3c63a5472..1032c610c059e 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -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 {