aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/timer
diff options
context:
space:
mode:
authorGrant Miller <[email protected]>2023-08-06 15:00:39 -0500
committerGrant Miller <[email protected]>2023-08-06 15:00:39 -0500
commitd49f40dd5c9480376484bd024aabc3651bde105e (patch)
treec14dd6980372687f0ec4cb5210ed5a8da000c48a /embassy-stm32/src/timer
parent477a90b8e3a3de107fe4bd7297c00bc569575846 (diff)
embassy-stm32: Misc clippy fixes
Diffstat (limited to 'embassy-stm32/src/timer')
-rw-r--r--embassy-stm32/src/timer/complementary_pwm.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/embassy-stm32/src/timer/complementary_pwm.rs b/embassy-stm32/src/timer/complementary_pwm.rs
index 48cb610f1..acd67048d 100644
--- a/embassy-stm32/src/timer/complementary_pwm.rs
+++ b/embassy-stm32/src/timer/complementary_pwm.rs
@@ -186,9 +186,8 @@ fn compute_dead_time_value(value: u16) -> (Ckd, u8) {
186 error = this_error; 186 error = this_error;
187 } 187 }
188 188
189 match error { 189 if error == 0 {
190 0 => break, 190 break;
191 _ => {}
192 } 191 }
193 } 192 }
194 193