summaryrefslogtreecommitdiff
path: root/2018
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-12-25 09:45:08 +0100
committertomsmeding <tom.smeding@gmail.com>2018-12-25 09:45:08 +0100
commitef0344356e8305c49da75293a5ac738b9a263de1 (patch)
tree48c065cbafb3e5a5e048bc683ca7ba169789ecaf /2018
parent885b0ea5b8f96bb2ed4424f387b244ef2d67a61e (diff)
Fix warnings in day 24
Diffstat (limited to '2018')
-rw-r--r--2018/src/day24.rs2
1 files changed, 2 insertions, 0 deletions
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" },