Day 11 - fix warning

This commit is contained in:
JonOfUs 2022-12-11 23:21:06 +01:00
parent 524f02adfa
commit 39dbb4bcc7

View file

@ -81,7 +81,7 @@ impl Monkey {
inspections: 0 inspections: 0
}; };
input.split("\n").filter(|line| *line != "").for_each(|line| { 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 { match ident {
" Starting items" => { " Starting items" => {
// remove whitespace and beginning, split by , // remove whitespace and beginning, split by ,