Replace Into<bool> for Level with From<Level> for bool
This commit is contained in:
		
							parent
							
								
									f2c2536cf3
								
							
						
					
					
						commit
						a4b8fc420a
					
				| @ -31,9 +31,9 @@ impl From<bool> for Level { | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl Into<bool> for Level { | ||||
|     fn into(self) -> bool { | ||||
|         match self { | ||||
| impl From<Level> for bool { | ||||
|     fn from(level: Level) -> bool { | ||||
|         match level { | ||||
|             Level::Low => false, | ||||
|             Level::High => true, | ||||
|         } | ||||
|  | ||||
| @ -341,9 +341,9 @@ impl From<bool> for Level { | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl Into<bool> for Level { | ||||
|     fn into(self) -> bool { | ||||
|         match self { | ||||
| impl From<Level> for bool { | ||||
|     fn from(level: Level) -> bool { | ||||
|         match level { | ||||
|             Level::Low => false, | ||||
|             Level::High => true, | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user