diff --git a/src/day3.rs b/src/day3.rs index dce28e0..ac6523a 100644 --- a/src/day3.rs +++ b/src/day3.rs @@ -37,9 +37,6 @@ impl Rucksack { } panic!("Common item not found"); } - fn contains(&self, item: &u8) -> bool { - self.compartments().into_iter().flatten().contains(item) - } fn common_with<'a>(&self, other: &[u8]) -> impl Iterator { self.compartments() .into_iter() diff --git a/src/day4.rs b/src/day4.rs index 9329b27..f716478 100644 --- a/src/day4.rs +++ b/src/day4.rs @@ -1,4 +1,4 @@ -use std::{io::BufRead, ops::RangeInclusive}; +use std::ops::RangeInclusive; use aoc_runner_derive::{aoc, aoc_generator};