[board] Remove a useless .into() call
Clippy pointed this out to me. This .into() call serves no purpose.
This commit is contained in:
		
							parent
							
								
									45183c910c
								
							
						
					
					
						commit
						484fcf342e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -46,7 +46,7 @@ impl Board {
 | 
			
		|||
 | 
			
		||||
        let color = self.unwrap_color(color);
 | 
			
		||||
 | 
			
		||||
        if !self.has_castling_right_unwrapped(color, wing.into()) {
 | 
			
		||||
        if !self.has_castling_right_unwrapped(color, wing) {
 | 
			
		||||
            return Err(CastleEvaluationError::NoRights { color, wing });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue