day-5 and day-6 clippied
This commit is contained in:
@@ -74,6 +74,13 @@ impl ItemMap {
|
|||||||
.expect("always")
|
.expect("always")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// part1 of day 5 of AOC 2023
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - input the puszzle input
|
||||||
|
///
|
||||||
|
/// # Panics
|
||||||
|
/// panics whenever the input isn't parsable
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn part1(input: &str) -> String {
|
pub fn part1(input: &str) -> String {
|
||||||
|
|||||||
@@ -138,6 +138,13 @@ impl ItemMap {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// part2 of day 5 of AOC 2023
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - input the puszzle input
|
||||||
|
///
|
||||||
|
/// # Panics
|
||||||
|
/// panics whenever the input isn't parsable
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn part2(input: &str) -> String {
|
pub fn part2(input: &str) -> String {
|
||||||
let (_input, (mut to_process, maps)) = parse_input(input).expect("aoc always has input");
|
let (_input, (mut to_process, maps)) = parse_input(input).expect("aoc always has input");
|
||||||
|
|||||||
@@ -9,6 +9,13 @@ use nom::{
|
|||||||
IResult,
|
IResult,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// part6 of day 1 of AOC 2023
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - input the puszzle input
|
||||||
|
///
|
||||||
|
/// # Panics
|
||||||
|
/// panics whenever the input isn't parsable
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn part1(input: &str) -> String {
|
pub fn part1(input: &str) -> String {
|
||||||
let (_, races) = parse_input(input).expect("input expected");
|
let (_, races) = parse_input(input).expect("input expected");
|
||||||
|
|||||||
@@ -9,6 +9,13 @@ use nom::{
|
|||||||
IResult,
|
IResult,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// part2 of day 2 of AOC 2023
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - input the puszzle input
|
||||||
|
///
|
||||||
|
/// # Panics
|
||||||
|
/// panics whenever the input isn't parsable
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn part2(input: &str) -> String {
|
pub fn part2(input: &str) -> String {
|
||||||
let (_, race) = parse_input(input).expect("input expected");
|
let (_, race) = parse_input(input).expect("input expected");
|
||||||
|
|||||||
Reference in New Issue
Block a user