on master help sign in
Remove pub keymap.name();
eda4c79gibbz00
helix-term/src/keymap.rs+2−6
@@ -52,10 +52,6 @@ impl KeyTrieNode {
52 }
52 }
53 }
53 }
54
54
55− pub fn name(&self) -> &str {
56− &self.name
57− }
58−
59 /// Merge another Node in. Leaves and subnodes from the other node replace
55 /// Merge another Node in. Leaves and subnodes from the other node replace
60 /// corresponding keyevent in self, except when both other and self have
56 /// corresponding keyevent in self, except when both other and self have
61 /// subnodes for same key. In that case the merge is recursive.
57 /// subnodes for same key. In that case the merge is recursive.
@@ -86,7 +82,7 @@ impl KeyTrieNode {
86 }
82 }
87 cmd.doc()
83 cmd.doc()
88 }
84 }
89− KeyTrie::Node(n) => n.name(),
85+ KeyTrie::Node(n) => &n.name,
90 KeyTrie::Sequence(_) => "[Multiple commands]",
86 KeyTrie::Sequence(_) => "[Multiple commands]",
91 };
87 };
92 match body.iter().position(|(_, d)| d == &desc) {
88 match body.iter().position(|(_, d)| d == &desc) {
@@ -110,7 +106,7 @@ impl KeyTrieNode {
110 (events.join(", "), desc)
106 (events.join(", "), desc)
111 })
107 })
112 .collect();
108 .collect();
113− Info::new(self.name(), &body)
109+ Info::new(&self.name, &body)
114 }
110 }
115}
111}
116
112