aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
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-stm32/src
parentf2c2536cf3d67e4e28616f631b6bdde789b15560 (diff)
Replace Into<bool> for Level with From<Level> for bool
Diffstat (limited to 'embassy-stm32/src')
-rw-r--r--embassy-stm32/src/gpio.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs
index 4895684e0..7a066a4ca 100644
--- a/embassy-stm32/src/gpio.rs
+++ b/embassy-stm32/src/gpio.rs
@@ -341,9 +341,9 @@ impl From<bool> for Level {
341 } 341 }
342} 342}
343 343
344impl Into<bool> for Level { 344impl From<Level> for bool {
345 fn into(self) -> bool { 345 fn from(level: Level) -> bool {
346 match self { 346 match level {
347 Level::Low => false, 347 Level::Low => false,
348 Level::High => true, 348 Level::High => true,
349 } 349 }