Fix another clippy::assign_op_pattern warning (#933)

This commit is contained in:
Hiroaki Yutani 2024-05-09 03:22:16 +09:00 committed by GitHub
parent 7fd9e6476b
commit e6dff2c047
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ macro_rules! impl_embedded_hal_delay_fugit {
now + <Self as $crate::Monotonic>::Duration::micros_at_least(us.into());
if now != done {
// Compensate for sub-tick uncertainty
done = done + <Self as $crate::Monotonic>::Duration::from_ticks(1);
done += <Self as $crate::Monotonic>::Duration::from_ticks(1);
}
while <Self as $crate::Monotonic>::now() < done {}