clippies!
All checks were successful
test / AoC 2024 (push) Successful in 1m44s

This commit is contained in:
2024-12-16 14:54:45 -08:00
parent 28a88e1aa7
commit 5e8b974137
4 changed files with 24 additions and 17 deletions

View File

@ -32,7 +32,7 @@ enum Quadrant {
}
fn nom_i64(input: &str) -> IResult<&str, i64> {
let (i, number) = map_res(recognize(preceded(opt(tag("-")), digit1)), |s| i64::from_str(s))(input)?;
let (i, number) = map_res(recognize(preceded(opt(tag("-")), digit1)), i64::from_str)(input)?;
Ok((i, number))
}
fn nom_i64_pair(input: &str) -> IResult<&str, (i64, i64)> {