🚨 Fixed warnings

This commit is contained in:
LeMoonStar 2024-12-01 06:42:22 +01:00
parent 49c441a277
commit 0dc9e330f7
3 changed files with 6 additions and 2 deletions

View file

@ -44,8 +44,8 @@ impl DayImpl<Data> for Day<CURRENT_DAY> {
} }
fn two(&self, data: &mut Data) -> Answer { fn two(&self, data: &mut Data) -> Answer {
let mut left = data.iter().map(|v| v[0]).collect::<Vec<u64>>(); let left = data.iter().map(|v| v[0]).collect::<Vec<u64>>();
let mut right = data.iter().map(|v| v[1]).collect::<Vec<u64>>(); let right = data.iter().map(|v| v[1]).collect::<Vec<u64>>();
Answer::Number( Answer::Number(
left.iter() left.iter()

View file

@ -148,6 +148,7 @@ where
} }
/// Compute both parts /// Compute both parts
#[allow(dead_code)]
fn run(input: &str) -> (Answer, Answer) fn run(input: &str) -> (Answer, Answer)
where where
Self: Sized, Self: Sized,
@ -157,6 +158,7 @@ where
} }
/// Init and compute part 1 /// Init and compute part 1
#[allow(dead_code)]
fn run_one(input: &str) -> Answer fn run_one(input: &str) -> Answer
where where
Self: Sized, Self: Sized,
@ -166,6 +168,7 @@ where
} }
/// Init and compute part 1 /// Init and compute part 1
#[allow(dead_code)]
fn run_two(input: &str) -> Answer fn run_two(input: &str) -> Answer
where where
Self: Sized, Self: Sized,

View file

@ -74,6 +74,7 @@ pub enum Direction {
West, West,
} }
#[allow(dead_code)]
impl Direction { impl Direction {
pub fn opposite(&self) -> Direction { pub fn opposite(&self) -> Direction {
match self { match self {