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
@@ -9,6 +9,7 @@ use futures::{Poll, Future};
/// Created by the [`read_exact`] function.
///
/// [`read_exact`]: fn.read_exact.html
#[must_use = "futures do nothing unless polled"]
pub struct ReadExact<A, T> {
state: State<A, T>,
}