mirror of
https://github.com/LeMoonStar/AoC24.git
synced 2025-07-07 21:49:59 +02:00
🚨 Fixed warnings
This commit is contained in:
parent
49c441a277
commit
0dc9e330f7
3 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue