summaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
diff options
context:
space:
mode:
authorTshepang Mbambo2022-12-01 16:37:38 +0000
committerGitHub2022-12-01 16:37:38 +0000
commita8a54be6bcd0667c50b7c739dbfd072df684b3c3 (patch)
tree12de85d49627e4ea8c185554de2fd8ebcfa62a3e /helix-term/src/keymap.rs
parent5a3ff742218aac32c3af08993f0edb623631fc72 (diff)
Fix nightly clippy lints (#4954)
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r--helix-term/src/keymap.rs6
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())
}