timere: make Delay must_use (#1714)

Closes #1711
This commit is contained in:
Steven Fackler 2019-10-30 23:21:03 -04:00 committed by Carl Lerche
parent 2c870b588f
commit 630d3136dd

View File

@ -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.
///