From 39dbb4bcc77039ef1b2ef3072713a6e0f10d8ca3 Mon Sep 17 00:00:00 2001 From: JonOfUs Date: Sun, 11 Dec 2022 23:21:06 +0100 Subject: [PATCH] Day 11 - fix warning --- src/days/d11.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/days/d11.rs b/src/days/d11.rs index 29204b7..14e1cff 100644 --- a/src/days/d11.rs +++ b/src/days/d11.rs @@ -81,7 +81,7 @@ impl Monkey { inspections: 0 }; input.split("\n").filter(|line| *line != "").for_each(|line| { - let (ident, mut val) = line.split_at(line.find(":").unwrap()); + let (ident, val) = line.split_at(line.find(":").unwrap()); match ident { " Starting items" => { // remove whitespace and beginning, split by ,