diff --git a/day_03/src/lib.rs b/day_03/src/lib.rs index 8091c9e..893b49a 100644 --- a/day_03/src/lib.rs +++ b/day_03/src/lib.rs @@ -1,10 +1,10 @@ use std::ops::BitXor; fn parse_input(input: &str) -> Vec> { - let input = input + input .split_whitespace() .map(|inp| make_bit_field(inp)) - .collect::>>(); + .collect::>>() } fn make_bit_field(inp_str: &str) -> Vec { @@ -82,8 +82,8 @@ pub fn part1(input: &str) -> usize { let out = BoolVec(out); - let gamma = dbg!(usize::from(out)); - let epsilon = dbg!(gamma.bitxor(0b1111_1111_1111)); + let gamma = usize::from(out); + let epsilon = gamma.bitxor(0b1111_1111_1111); gamma * epsilon }