From b41a10e794261e1539cd571aab00fca40568ba87 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Fri, 6 Dec 2024 13:38:15 +0100 Subject: Fix documentation (docs.rs) and release 2.1.2 --- rtic-time/src/timer_queue.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rtic-time') diff --git a/rtic-time/src/timer_queue.rs b/rtic-time/src/timer_queue.rs index c4cd7eb..4353a20 100644 --- a/rtic-time/src/timer_queue.rs +++ b/rtic-time/src/timer_queue.rs @@ -211,7 +211,7 @@ pub struct Delay<'q, Backend: TimerQueueBackend> { marker: AtomicUsize, } -impl<'q, Backend: TimerQueueBackend> Future for Delay<'q, Backend> { +impl Future for Delay<'_, Backend> { type Output = (); fn poll(self: Pin<&mut Self>, cx: &mut core::task::Context<'_>) -> Poll { @@ -249,7 +249,7 @@ impl<'q, Backend: TimerQueueBackend> Future for Delay<'q, Backend> { } } -impl<'q, Backend: TimerQueueBackend> Drop for Delay<'q, Backend> { +impl Drop for Delay<'_, Backend> { fn drop(&mut self) { // SAFETY: Drop cannot be run at the same time as poll, so we can't end up // derefencing this concurrently to the one in `poll`. @@ -269,7 +269,7 @@ pub struct Timeout<'q, Backend: TimerQueueBackend, F> { future: F, } -impl<'q, Backend: TimerQueueBackend, F: Future> Future for Timeout<'q, Backend, F> { +impl Future for Timeout<'_, Backend, F> { type Output = Result; fn poll(self: Pin<&mut Self>, cx: &mut core::task::Context<'_>) -> Poll { -- cgit v1.2.3