[2018][rust][12] fmt
change rrltllnuvvsmpxtzwtynptmrmortxqkl
commit 277c512db39348d37aca28d02ae1abf291a65712
author Alpha Chen <alpha.chen@gmail.com>
date
parent tzxsmusz
diff --git a/2018/rust/src/bin/day_12.rs b/2018/rust/src/bin/day_12.rs
index 960c8a9..9f3c2bd 100644
--- a/2018/rust/src/bin/day_12.rs
+++ b/2018/rust/src/bin/day_12.rs
@@ -16,7 +16,7 @@ fn solve(input: &str) -> Result<String, Box<Error>> {
     }
 
     let pots = generation.next().unwrap();
-    let indices: Vec<_> = pots.iter().filter(|(_,&v)| v).map(|(&k,_)| k).collect();
+    let indices: Vec<_> = pots.iter().filter(|(_, &v)| v).map(|(&k, _)| k).collect();
     let output: isize = indices.iter().sum();
 
     Ok(output.to_string())