Set Stream types as must_use

This commit is contained in:
Taylor Cramer
2017-10-25 18:02:14 -07:00
parent b4fa47bd09
commit bd9a07f3ad
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -21,6 +21,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 = "streams do nothing unless polled"]
pub struct Interval {
token: TimeoutToken,
next: Instant,