@@ -52,10 +52,6 @@ impl KeyTrieNode {
55− pub fn name(&self) -> &str {
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 {
89− KeyTrie::Node(n) => n.name(),
85+ KeyTrie::Node(n) => &n.name,
90 KeyTrie::Sequence(_) => "[Multiple commands]",
86 KeyTrie::Sequence(_) => "[Multiple commands]",
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)
112 .collect();
108 .collect();
113− Info::new(self.name(), &body)
109+ Info::new(&self.name, &body)