keymap: Derive Default
for KeyTrieNode
This commit is contained in:
parent
78e8695420
commit
a56af221d7
1 changed files with 1 additions and 7 deletions
|
@ -18,7 +18,7 @@ use std::{
|
|||
pub use default::default;
|
||||
use macros::key;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct KeyTrieNode {
|
||||
/// A label for keys coming under this node, like "Goto mode"
|
||||
name: String,
|
||||
|
@ -117,12 +117,6 @@ impl KeyTrieNode {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for KeyTrieNode {
|
||||
fn default() -> Self {
|
||||
Self::new("", HashMap::new(), Vec::new())
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for KeyTrieNode {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.map == other.map
|
||||
|
|
Loading…
Add table
Reference in a new issue