From 6f26cf58602642e3aa3c00402f3041c8903430d2 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 7 Dec 2019 00:31:10 +0100 Subject: [PATCH] 2019: day06: fix clippy lints --- aoc2019/src/day06.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aoc2019/src/day06.rs b/aoc2019/src/day06.rs index f3a51d4..3d18bba 100644 --- a/aoc2019/src/day06.rs +++ b/aoc2019/src/day06.rs @@ -66,7 +66,7 @@ fn part2(input: &str) -> Result { }) .collect::>>()?; - 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::>(); let santa_path = iter::successors(Some("SAN".to_string()), succ).collect::>();