summaryrefslogtreecommitdiff
path: root/2018
diff options
context:
space:
mode:
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" },