From ef0344356e8305c49da75293a5ac738b9a263de1 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 25 Dec 2018 09:45:08 +0100 Subject: Fix warnings in day 24 --- 2018/src/day24.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/2018/src/day24.rs b/2018/src/day24.rs index e52b4d9..7a212d0 100644 --- a/2018/src/day24.rs +++ b/2018/src/day24.rs @@ -195,6 +195,7 @@ impl Field { self.army2.retain(|g| g.units > 0); } + #[used] fn print(&self) { println!(""); println!("Immune System:"); @@ -208,6 +209,7 @@ impl Field { } } + #[used] fn id_str(&self, id: Id) -> String { format!("{} group {}", if id < self.army1.len() { "Immune System" } else { "Infection" }, -- cgit v1.2.3-70-g09d2