aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp
diff options
context:
space:
mode:
authorExplodingWaffle <[email protected]>2023-06-05 01:30:34 +0100
committerExplodingWaffle <[email protected]>2023-06-05 01:37:56 +0100
commita4b8fc420a377bd231d413dbdb2543550e3726ef (patch)
tree96f502bfc4b100916b56955c63a1a0e072026b44 /embassy-rp
parentf2c2536cf3d67e4e28616f631b6bdde789b15560 (diff)
Replace Into<bool> for Level with From<Level> for bool
Diffstat (limited to 'embassy-rp')
-rw-r--r--embassy-rp/src/gpio.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs
index f213bfeab..91cef8609 100644
--- a/embassy-rp/src/gpio.rs
+++ b/embassy-rp/src/gpio.rs
@@ -31,9 +31,9 @@ impl From<bool> for Level {
31 } 31 }
32} 32}
33 33
34impl Into<bool> for Level { 34impl From<Level> for bool {
35 fn into(self) -> bool { 35 fn from(level: Level) -> bool {
36 match self { 36 match level {
37 Level::Low => false, 37 Level::Low => false,
38 Level::High => true, 38 Level::High => true,
39 } 39 }