[2018][rust][1.x] clippy
change nnxtwrpwtyknvxtyrmpuwrlzquxmxnrm
commit fd7c642821828e754bdbd0296e1a586ae8770fb0
author Alpha Chen <alpha.chen@gmail.com>
date
parent otoszntn
diff --git a/2018/rust/src/main.rs b/2018/rust/src/main.rs
index 0d989e3..cd5d2e3 100644
--- a/2018/rust/src/main.rs
+++ b/2018/rust/src/main.rs
@@ -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)