Fix clippy warnings.

This commit is contained in:
2020-09-08 15:32:29 +02:00
parent 5aaada0c05
commit a7cb6edbf3
11 changed files with 30 additions and 29 deletions

View File

@@ -8,13 +8,6 @@ pub struct Storage {
}
impl Storage {
pub fn new() -> Self {
Storage {
keys: HashMap::new(),
items: Vec::new(),
}
}
pub fn contains_key(&self, key: &str) -> bool {
self.keys.contains_key(key)
}
@@ -54,3 +47,12 @@ impl Storage {
self.keys.keys()
}
}
impl Default for Storage {
fn default() -> Self {
Self {
keys: HashMap::new(),
items: Vec::new(),
}
}
}