mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Fix all clippy warnings.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user