From e6dff2c047dca0763f85513e76b6cb370fe0e43f Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Thu, 9 May 2024 03:22:16 +0900 Subject: [PATCH] Fix another clippy::assign_op_pattern warning (#933) --- rtic-time/src/monotonic/embedded_hal_macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtic-time/src/monotonic/embedded_hal_macros.rs b/rtic-time/src/monotonic/embedded_hal_macros.rs index f3e857e2d9..f729231d84 100644 --- a/rtic-time/src/monotonic/embedded_hal_macros.rs +++ b/rtic-time/src/monotonic/embedded_hal_macros.rs @@ -23,7 +23,7 @@ macro_rules! impl_embedded_hal_delay_fugit { now + ::Duration::micros_at_least(us.into()); if now != done { // Compensate for sub-tick uncertainty - done = done + ::Duration::from_ticks(1); + done += ::Duration::from_ticks(1); } while ::now() < done {}