aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
diff options
context:
space:
mode:
authorDaniel Sedlak2024-01-17 18:40:45 +0000
committerGitHub2024-01-17 18:40:45 +0000
commitaf8e524a7d06253fa854bf8954f64312e11d0ea0 (patch)
treed36deaffca3049d67d46aff35fb500644cb700df /helix-term/src/keymap.rs
parentc60ba4ba04de56f37f4f4b19051bc4a1e68b3484 (diff)
Address clippy lints (#9371)
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r--helix-term/src/keymap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 598be55b..d9297e08 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -319,7 +319,7 @@ impl Keymaps {
self.sticky = None;
}
- let first = self.state.get(0).unwrap_or(&key);
+ let first = self.state.first().unwrap_or(&key);
let trie_node = match self.sticky {
Some(ref trie) => Cow::Owned(KeyTrie::Node(trie.clone())),
None => Cow::Borrowed(keymap),