Remove left in day 5 debug statement
This commit is contained in:
parent
60105aa33b
commit
a546d63914
@ -18,7 +18,6 @@ impl Stacks {
|
|||||||
pub fn apply_instruction_in_order(&mut self, ins: &Instruction) {
|
pub fn apply_instruction_in_order(&mut self, ins: &Instruction) {
|
||||||
let from_stack = &mut self.stacks[ins.from - 1];
|
let from_stack = &mut self.stacks[ins.from - 1];
|
||||||
let crates = from_stack.split_off(from_stack.len() - ins.count);
|
let crates = from_stack.split_off(from_stack.len() - ins.count);
|
||||||
dbg!(&crates);
|
|
||||||
self.stacks[ins.to - 1].extend_from_slice(&crates);
|
self.stacks[ins.to - 1].extend_from_slice(&crates);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user