summaryrefslogtreecommitdiff
path: root/2018/src
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-12-14 10:06:46 +0100
committertomsmeding <tom.smeding@gmail.com>2018-12-14 10:06:46 +0100
commit17c7296e7aa5672e74aa41f6eb41cc09977d91e6 (patch)
tree7260dd048dd157f80068fb549fe73f74a5b288f6 /2018/src
parenta443f736c77bf14240b6ec0c8e5c8c21447074c4 (diff)
Fix warnings in day13
Diffstat (limited to '2018/src')
-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() {