rtic-time: clippy fixes

This commit is contained in:
Henrik Tjäder 2023-03-04 20:52:50 +01:00
parent bdfad77938
commit ebd35b89a4

View file

@ -243,7 +243,7 @@ impl<Mono: Monotonic> TimerQueue<Mono> {
// we make sure in `dropper` that the link is removed from the queue before // we make sure in `dropper` that the link is removed from the queue before
// dropping `link_ptr` AND `dropper` makes sure that the shadowed `link_ptr` lives // dropping `link_ptr` AND `dropper` makes sure that the shadowed `link_ptr` lives
// until the end of the stack frame. // until the end of the stack frame.
let (was_empty, addr) = unsafe { queue.insert(Pin::new_unchecked(&link_ref)) }; let (was_empty, addr) = unsafe { queue.insert(Pin::new_unchecked(link_ref)) };
marker.store(addr, Ordering::Relaxed); marker.store(addr, Ordering::Relaxed);