style(lib): add must_use attributes to futures and streams

This commit is contained in:
Sean McArthur
2017-07-24 10:11:29 -07:00
parent 9b47e1861a
commit 6f1a87097e
3 changed files with 3 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ use http::Chunk;
pub type TokioBody = tokio_proto::streaming::Body<Chunk, ::Error>;
/// A `Stream` for `Chunk`s used in requests and responses.
#[must_use = "streams do nothing unless polled"]
#[derive(Debug)]
pub struct Body(TokioBody);