diff --git a/src/day02.rs b/src/day02.rs index cad3a0c..725fe3a 100644 --- a/src/day02.rs +++ b/src/day02.rs @@ -37,12 +37,8 @@ impl Day for Day02 { fw += n; depth += aim * n; } - Instruction::Down(n) => { - aim += n; - } - Instruction::Up(n) => { - aim -= n; - } + Instruction::Down(n) => aim += n, + Instruction::Up(n) => aim -= n, } } format!("{}", depth * fw)