mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
Fix documentation (docs.rs) and release 2.1.2
This commit is contained in:
parent
f17915842f
commit
b41a10e794
8 changed files with 34 additions and 28 deletions
|
|
@ -211,7 +211,7 @@ pub struct Delay<'q, Backend: TimerQueueBackend> {
|
|||
marker: AtomicUsize,
|
||||
}
|
||||
|
||||
impl<'q, Backend: TimerQueueBackend> Future for Delay<'q, Backend> {
|
||||
impl<Backend: TimerQueueBackend> Future for Delay<'_, Backend> {
|
||||
type Output = ();
|
||||
|
||||
fn poll(self: Pin<&mut Self>, cx: &mut core::task::Context<'_>) -> Poll<Self::Output> {
|
||||
|
|
@ -249,7 +249,7 @@ impl<'q, Backend: TimerQueueBackend> Future for Delay<'q, Backend> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'q, Backend: TimerQueueBackend> Drop for Delay<'q, Backend> {
|
||||
impl<Backend: TimerQueueBackend> 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<Backend: TimerQueueBackend, F: Future> Future for Timeout<'_, Backend, F> {
|
||||
type Output = Result<F::Output, TimeoutError>;
|
||||
|
||||
fn poll(self: Pin<&mut Self>, cx: &mut core::task::Context<'_>) -> Poll<Self::Output> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue