mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Fix clippy::assign_op_pattern lint (#932)
This commit is contained in:
parent
deafcc4382
commit
7fd9e6476b
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ macro_rules! impl_embedded_hal_delay_fugit {
|
||||||
now + <Self as $crate::Monotonic>::Duration::nanos_at_least(ns.into());
|
now + <Self as $crate::Monotonic>::Duration::nanos_at_least(ns.into());
|
||||||
if now != done {
|
if now != done {
|
||||||
// Compensate for sub-tick uncertainty
|
// 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 {}
|
while <Self as $crate::Monotonic>::now() < done {}
|
||||||
|
@ -35,7 +35,7 @@ macro_rules! impl_embedded_hal_delay_fugit {
|
||||||
now + <Self as $crate::Monotonic>::Duration::millis_at_least(ms.into());
|
now + <Self as $crate::Monotonic>::Duration::millis_at_least(ms.into());
|
||||||
if now != done {
|
if now != done {
|
||||||
// Compensate for sub-tick uncertainty
|
// 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 {}
|
while <Self as $crate::Monotonic>::now() < done {}
|
||||||
|
|
Loading…
Reference in a new issue