Merge #1171
1171: Implement From<gpio::Level> for bool r=Dirbaio a=hulthe From implies Into, so this won't break anything. Co-authored-by: Joakim Hulthe <joakim@hulthe.net>
This commit is contained in:
		| @@ -88,9 +88,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, | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user