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

@@ -86,7 +86,7 @@ impl common::Solution for Day03 {
let claims = self.get_claims();
let uncontested = self.claims.iter()
.position(|x| x.range().all(|x| *claims.get(&x).unwrap() == 1))
.position(|x| x.range().all(|x| claims[&x] == 1))
.unwrap();
format!("{}", uncontested + 1)