From 9ccf4c512cbe0e9cfaefedd9a02d65a077337f3b Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sat, 4 Dec 2021 01:27:48 +0100 Subject: [PATCH] Removed trailing spaces in day3 Signed-off-by: Louis Vallat --- day3/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day3/src/main.rs b/day3/src/main.rs index 4904ad5..299e2c4 100644 --- a/day3/src/main.rs +++ b/day3/src/main.rs @@ -38,7 +38,7 @@ fn get_most_in_col(v: &Vec>, c: usize) -> u32 { fn get_o2(v: &Vec>, c: usize) -> u32 { if v.len() == 1 { return bit_vec_to_u32(&v[0], false); } - + let a = get_most_in_col(&v, c); let f = v.into_iter().filter(|e| e[c] == (a + 1) % 2) .fold(vec![], |mut acc, e| { acc.push(e.to_owned()); return acc;}); @@ -47,7 +47,7 @@ fn get_o2(v: &Vec>, c: usize) -> u32 { fn get_co2(v: &Vec>, c: usize) -> u32 { if v.len() == 1 { return bit_vec_to_u32(&v[0], false); } - + let a = get_most_in_col(&v, c); let f = v.into_iter().filter(|e| e[c] == a) .fold(vec![], |mut acc, e| { acc.push(e.to_owned()); return acc;});