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

@@ -110,6 +110,7 @@ where C: Connect,
}
/// A `Future` that will resolve to an HTTP Response.
#[must_use = "futures do nothing unless polled"]
pub struct FutureResponse(Box<Future<Item=Response, Error=::Error> + 'static>);
impl fmt::Debug for FutureResponse {