summaryrefslogtreecommitdiff
path: root/2018
diff options
context:
space:
mode:
Diffstat (limited to '2018')
-rw-r--r--2018/src/day13.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/2018/src/day13.rs b/2018/src/day13.rs
index 92411c1..a77c775 100644
--- a/2018/src/day13.rs
+++ b/2018/src/day13.rs
@@ -77,6 +77,7 @@ fn newdir(dir: &Dir, c: u8) -> Dir {
}
}
+#[allow(dead_code)]
fn print_dir(dir: &Dir) -> char {
match dir {
Dir{x:1,y:0} => '>',
@@ -87,6 +88,7 @@ fn print_dir(dir: &Dir) -> char {
}
}
+#[allow(dead_code)]
fn print_grid(grid: &Vec<Vec<u8>>, carts: &Vec<Cart>) {
let mut hascart: HashMap<Pos, usize> = HashMap::new();
for (i, cart) in carts.iter().enumerate() {