diff options
Diffstat (limited to 'tokio/tests/time_rt.rs')
-rw-r--r-- | tokio/tests/time_rt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/time_rt.rs b/tokio/tests/time_rt.rs index 85db78db..07753435 100644 --- a/tokio/tests/time_rt.rs +++ b/tokio/tests/time_rt.rs @@ -68,7 +68,7 @@ async fn starving() { } let when = Instant::now() + Duration::from_millis(20); - let starve = Starve(sleep_until(when), 0); + let starve = Starve(Box::pin(sleep_until(when)), 0); starve.await; assert!(Instant::now() >= when); |