minor cleanup
This commit is contained in:
		
							parent
							
								
									40596ae83b
								
							
						
					
					
						commit
						6c0aa6287c
					
				| 
						 | 
				
			
			@ -1,2 +0,0 @@
 | 
			
		|||
pub type Int = u32;
 | 
			
		||||
pub type Line = (Vec<Int>, Vec<Int>);
 | 
			
		||||
| 
						 | 
				
			
			@ -10,12 +10,12 @@ use nom::{
 | 
			
		|||
    IResult,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
use self::common::{Int, Line};
 | 
			
		||||
 | 
			
		||||
mod common;
 | 
			
		||||
pub mod inputs;
 | 
			
		||||
mod test;
 | 
			
		||||
 | 
			
		||||
type Int = u32;
 | 
			
		||||
type Line = (Vec<Int>, Vec<Int>);
 | 
			
		||||
 | 
			
		||||
fn parse_single_digit(input: &str) -> IResult<&str, Int> {
 | 
			
		||||
    map_opt(anychar, |i: char| i.to_digit(10))(input)
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,7 @@ use nom::{
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
pub mod inputs;
 | 
			
		||||
pub mod test;
 | 
			
		||||
mod test;
 | 
			
		||||
 | 
			
		||||
type Int = u32;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue