From aed73754c8e6511db11a022b0fe34bd0367d5413 Mon Sep 17 00:00:00 2001 From: Keenan Tims Date: Mon, 1 Dec 2025 17:11:56 -0800 Subject: [PATCH] cleanup --- src/day3.rs | 3 --- src/day4.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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};