diff options
author | Tshepang Mbambo | 2022-12-01 16:37:38 +0000 |
---|---|---|
committer | GitHub | 2022-12-01 16:37:38 +0000 |
commit | a8a54be6bcd0667c50b7c739dbfd072df684b3c3 (patch) | |
tree | 12de85d49627e4ea8c185554de2fd8ebcfa62a3e /helix-term/src/keymap.rs | |
parent | 5a3ff742218aac32c3af08993f0edb623631fc72 (diff) |
Fix nightly clippy lints (#4954)
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r-- | helix-term/src/keymap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 088b3b6d..4a131f0a 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -390,18 +390,18 @@ impl Keymaps { self.state.push(key); match trie.search(&self.state[1..]) { - Some(&KeyTrie::Node(ref map)) => { + Some(KeyTrie::Node(map)) => { if map.is_sticky { self.state.clear(); self.sticky = Some(map.clone()); } KeymapResult::Pending(map.clone()) } - Some(&KeyTrie::Leaf(ref cmd)) => { + Some(KeyTrie::Leaf(cmd)) => { self.state.clear(); KeymapResult::Matched(cmd.clone()) } - Some(&KeyTrie::Sequence(ref cmds)) => { + Some(KeyTrie::Sequence(cmds)) => { self.state.clear(); KeymapResult::MatchedSequence(cmds.clone()) } |