Skip to content

Commit

Permalink
Remove outdated comment about Unpin
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed Jan 8, 2025
1 parent e4b91ac commit 14d227b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions async-time-mock-tokio/src/sleep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ impl From<tokio::time::Sleep> for Sleep {
Self::Real(sleep)
}
}

#[cfg(feature = "mock")]
impl From<TimerListener> for Sleep {
fn from(listener: TimerListener) -> Self {
Self::Mock(listener)
}
}

impl Future for Sleep {
type Output = TimeHandlerGuard;

Expand Down
2 changes: 0 additions & 2 deletions async-time-mock-tokio/src/timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ impl<T: Debug> Debug for Timeout<T> {
}
}

// implementing `Unpin` is currently impossible because the underlying async_time_mock_core::Timeout doesn't allow it (`sleep` is an async function)

impl<T> Future for Timeout<T>
where
T: Future,
Expand Down

0 comments on commit 14d227b

Please sign in to comment.