Revert "Change (c : char) in"
This reverts commit edf29050c6fc66636d4287c252cec6ec87691a24. Bad optimization...
This commit is contained in:
		
							parent
							
								
									edf29050c6
								
							
						
					
					
						commit
						8c16773fe9
					
				@ -11,7 +11,7 @@ enum Instruction {
 | 
			
		||||
    F,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn parse_orientation(c: &char) -> Result<Orientation, &'static str> {
 | 
			
		||||
fn parse_orientation(c: char) -> Result<Orientation, &'static str> {
 | 
			
		||||
    match c {
 | 
			
		||||
        'N' => Ok(Orientation::N),
 | 
			
		||||
        'E' => Ok(Orientation::E),
 | 
			
		||||
@ -21,7 +21,7 @@ fn parse_orientation(c: &char) -> Result<Orientation, &'static str> {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn parse_instruction(c: &char) -> Result<Instruction, &'static str> {
 | 
			
		||||
fn parse_instruction(c: char) -> Result<Instruction, &'static str> {
 | 
			
		||||
    match c {
 | 
			
		||||
        'L' => Ok(Instruction::L),
 | 
			
		||||
        'R' => Ok(Instruction::R),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user