minor cleanup

This commit is contained in:
Thorn Avery 2023-12-03 08:40:13 +11:00
parent 40596ae83b
commit 6c0aa6287c
3 changed files with 4 additions and 6 deletions

View file

@ -1,2 +0,0 @@
pub type Int = u32;
pub type Line = (Vec<Int>, Vec<Int>);

View file

@ -10,12 +10,12 @@ use nom::{
IResult, IResult,
}; };
use self::common::{Int, Line};
mod common;
pub mod inputs; pub mod inputs;
mod test; mod test;
type Int = u32;
type Line = (Vec<Int>, Vec<Int>);
fn parse_single_digit(input: &str) -> IResult<&str, Int> { fn parse_single_digit(input: &str) -> IResult<&str, Int> {
map_opt(anychar, |i: char| i.to_digit(10))(input) map_opt(anychar, |i: char| i.to_digit(10))(input)
} }

View file

@ -11,7 +11,7 @@ use nom::{
}; };
pub mod inputs; pub mod inputs;
pub mod test; mod test;
type Int = u32; type Int = u32;