[2018][rust][1.x] clippy

sorbet
Alpha Chen 6 years ago
parent 7ececd84fc
commit 52cbaef2b1

@ -28,7 +28,7 @@ fn day_1_1(input: &str, delimiter: &str) -> String {
let count = seen.entry(freq.clone()).or_insert(0);
*count += 1;
Some((freq.clone(), count.clone()))
Some((*freq, *count))
})
.filter(|(_, count)| *count > 1)
.map(|(freq, _)| freq)

Loading…
Cancel
Save