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:
commit
4dadfb41ea
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue