clippy fixes, fmt

This commit is contained in:
Anton-4 2021-09-25 19:17:12 +02:00
parent 4c2de0215a
commit 95a30210ce
44 changed files with 100 additions and 98 deletions

View file

@ -10,10 +10,6 @@ pub struct SlowPool {
}
impl SlowPool {
pub fn new() -> SlowPool {
SlowPool { nodes: Vec::new() }
}
pub fn add(&mut self, node: MarkupNode) -> MarkNodeId {
let id = self.nodes.len();
@ -73,3 +69,9 @@ impl fmt::Display for SlowPool {
Ok(())
}
}
impl Default for SlowPool {
fn default() -> Self {
SlowPool { nodes: Vec::new() }
}
}