Fix all clippy warnings.

This commit is contained in:
2018-12-17 12:26:31 +01:00
parent 851868bed4
commit f23624c456
15 changed files with 52 additions and 38 deletions

View File

@@ -50,7 +50,7 @@ impl Day07 {
let a = groups[1].chars().next().unwrap();
let b = groups[2].chars().next().unwrap();
self.forward.entry(a).or_insert(Vec::new()).push(b);
self.forward.entry(a).or_insert_with(Vec::new).push(b);
*self.dep_count.entry(b).or_insert(0) += 1;
}
}