From 17c7296e7aa5672e74aa41f6eb41cc09977d91e6 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 14 Dec 2018 10:06:46 +0100 Subject: Fix warnings in day13 --- 2018/src/day13.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to '2018') 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>, carts: &Vec) { let mut hascart: HashMap = HashMap::new(); for (i, cart) in carts.iter().enumerate() { -- cgit v1.2.3-70-g09d2