aoc2022

Advent of Code 2022 solutions in Rust
git clone git://code.mfashby.net:/aoc2022
Log | Files | Refs

commit 3397b97987abac3b1d84d5fa8c7b6185a20bf409
parent 4fcbe72a62529745a85011552ae1a6659d770f93
Author: Martin Ashby <martin@ashbysoft.com>
Date:   Mon,  5 Dec 2022 22:48:34 +0000

Remove extraneous prints from day5

Diffstat:
Msrc/day5.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/day5.rs b/src/day5.rs @@ -20,7 +20,7 @@ pub fn run(input: String) { } } } - println!("ship: {:?}", ship); + //println!("ship: {:?}", ship); lix += 1; @@ -34,7 +34,7 @@ pub fn run(input: String) { let n: usize = mm.get(1).unwrap().as_str().parse().unwrap(); let ifrom: usize = mm.get(2).unwrap().as_str().parse().unwrap(); let ito: usize = mm.get(3).unwrap().as_str().parse().unwrap(); - println!("moving {} from {} to {}", n, ifrom, ito); + //println!("moving {} from {} to {}", n, ifrom, ito); // for _ in 0..n { // let stackfrom = ship.get_mut(&ifrom).expect("couldn't find stack to pop from!"); // let ch = stackfrom.pop().expect("failed to pop from stack! maybe it was empty?");