diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-12-14 10:06:46 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-12-14 10:06:46 +0100 |
commit | 17c7296e7aa5672e74aa41f6eb41cc09977d91e6 (patch) | |
tree | 7260dd048dd157f80068fb549fe73f74a5b288f6 | |
parent | a443f736c77bf14240b6ec0c8e5c8c21447074c4 (diff) |
Fix warnings in day13
-rw-r--r-- | 2018/src/day13.rs | 2 |
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() { |