mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
helix_term::keymap
: Remove one-liner solely used for a test.
This commit is contained in:
parent
f7df53c948
commit
d20c1632a7
@ -111,10 +111,6 @@ pub fn infobox(&self) -> Info {
|
||||
}
|
||||
Info::from_keymap(self.name(), body)
|
||||
}
|
||||
/// Get a reference to the key trie node's order.
|
||||
pub fn order(&self) -> &[KeyEvent] {
|
||||
self.order.as_slice()
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for KeyTrieNode {
|
||||
@ -534,7 +530,7 @@ fn order_should_be_set() {
|
||||
);
|
||||
// Make sure an order was set during merge
|
||||
let node = keymap.search(&[crate::key!(' ')]).unwrap();
|
||||
assert!(!node.node().unwrap().order().is_empty())
|
||||
assert!(!node.node().unwrap().order.as_slice().is_empty())
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user