Set Future types as must_use

This commit is contained in:
Taylor Cramer
2017-10-25 17:57:25 -07:00
parent 01198532c1
commit b4fa47bd09
10 changed files with 12 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ use reactor::timeout_token::TimeoutToken;
/// Note that timeouts are not intended for high resolution timers, but rather
/// they will likely fire some granularity after the exact instant that they're
/// otherwise indicated to fire at.
#[must_use = "futures do nothing unless polled"]
#[derive(Debug)]
pub struct Timeout {
token: TimeoutToken,