2019: day06: fix clippy lints
This commit is contained in:
parent
3a6e9d58b6
commit
6f26cf5860
|
@ -66,7 +66,7 @@ fn part2(input: &str) -> Result<usize> {
|
|||
})
|
||||
.collect::<Result<HashMap<String, String>>>()?;
|
||||
|
||||
let succ = |key: &String| orbits.get(key).map(|val| val.clone());
|
||||
let succ = |key: &String| orbits.get(key).cloned();
|
||||
|
||||
let you_path = iter::successors(Some("YOU".to_string()), succ).collect::<HashSet<_>>();
|
||||
let santa_path = iter::successors(Some("SAN".to_string()), succ).collect::<HashSet<_>>();
|
||||
|
|
Loading…
Reference in a new issue