From 630d3136dd863b26e7bfbd3e145f63d92f591243 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 30 Oct 2019 23:21:03 -0400 Subject: [PATCH] timere: make Delay must_use (#1714) Closes #1711 --- tokio/src/timer/delay.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tokio/src/timer/delay.rs b/tokio/src/timer/delay.rs index a48510f4b..a4e9e3252 100644 --- a/tokio/src/timer/delay.rs +++ b/tokio/src/timer/delay.rs @@ -21,6 +21,7 @@ use std::time::{Duration, Instant}; /// /// [`new`]: #method.new #[derive(Debug)] +#[must_use = "futures do nothing unless you `.await` or poll them"] pub struct Delay { /// The link between the `Delay` instance at the timer that drives it. ///