add #[must_use] to more futures and streams (#1309)

This commit is contained in:
Taiki Endo
2019-07-15 13:28:56 -07:00
committed by Carl Lerche
parent 2dde2b448f
commit b14e189e44
34 changed files with 35 additions and 12 deletions
+1
View File
@@ -41,6 +41,7 @@ where
/// A future used to open a file for writing and write the entire contents
/// of some data to it.
#[derive(Debug)]
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct WriteFile<P: AsRef<Path> + Send + Unpin + 'static, C: AsRef<[u8]> + Unpin> {
state: State<P, C>,
}