We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a6984 commit 2505de3Copy full SHA for 2505de3
src/solutions/year2015/day07.rs
@@ -12,9 +12,10 @@ impl Solution for Day07 {
12
}
13
14
fn part_two(&self, input: &str) -> String {
15
- let a_value = self.signal(input, "a");
+ let instructions = self.parse(input);
16
+ let a_value = self.signal_for_instructions(&instructions.clone(), "a");
17
- let mut instructions = self.parse(input);
18
+ let mut instructions = instructions;
19
instructions
20
.entry("b".to_string())
21
.and_modify(|v| *v = Instruction::Value(Value::Numeric(a_value.parse().unwrap())));
0 commit comments