on master help sign in
Remove pub keymap.name();

`keymap.name` is only used internally.

commiteda4c79f2f9e8383bda1ccc995c02223904f8be1 authorgibbz00 <gabrielhansson00@gmail.com> dateSat 3 Jun 2023, 10:46 (3 years ago) parent3d0bc72
1 file changed+2−6
helix-term/src/keymap.rs+2−6
helix-term/src/keymap.rs+2−6
@@ -52,10 +52,6 @@ impl KeyTrieNode {
5252 }
5353 }
5454
55− pub fn name(&self) -> &str {
56− &self.name
57− }
58−
5955 /// Merge another Node in. Leaves and subnodes from the other node replace
6056 /// corresponding keyevent in self, except when both other and self have
6157 /// subnodes for same key. In that case the merge is recursive.
@@ -86,7 +82,7 @@ impl KeyTrieNode {
8682 }
8783 cmd.doc()
8884 }
89− KeyTrie::Node(n) => n.name(),
85+ KeyTrie::Node(n) => &n.name,
9086 KeyTrie::Sequence(_) => "[Multiple commands]",
9187 };
9288 match body.iter().position(|(_, d)| d == &desc) {
@@ -110,7 +106,7 @@ impl KeyTrieNode {
110106 (events.join(", "), desc)
111107 })
112108 .collect();
113− Info::new(self.name(), &body)
109+ Info::new(&self.name, &body)
114110 }
115111}
116112