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

@@ -147,6 +147,7 @@ impl StdError for InvalidUrl {
}
/// A Future representing work to connect to a URL.
#[must_use = "futures do nothing unless polled"]
pub struct HttpConnecting {
state: State,
handle: Handle,