From d49f40dd5c9480376484bd024aabc3651bde105e Mon Sep 17 00:00:00 2001 From: Grant Miller Date: Sun, 6 Aug 2023 15:00:39 -0500 Subject: embassy-stm32: Misc clippy fixes --- embassy-stm32/src/timer/complementary_pwm.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'embassy-stm32/src/timer') 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) { error = this_error; } - match error { - 0 => break, - _ => {} + if error == 0 { + break; } } -- cgit