File tree 3 files changed +3
-0
lines changed
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ impl StdError for InvalidUrl {
147
147
}
148
148
149
149
/// A Future representing work to connect to a URL.
150
+ #[ must_use = "futures do nothing unless polled" ]
150
151
pub struct HttpConnecting {
151
152
state : State ,
152
153
handle : Handle ,
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ where C: Connect,
110
110
}
111
111
112
112
/// A `Future` that will resolve to an HTTP Response.
113
+ #[ must_use = "futures do nothing unless polled" ]
113
114
pub struct FutureResponse ( Box < Future < Item =Response , Error =:: Error > + ' static > ) ;
114
115
115
116
impl fmt:: Debug for FutureResponse {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use http::Chunk;
8
8
pub type TokioBody = tokio_proto:: streaming:: Body < Chunk , :: Error > ;
9
9
10
10
/// A `Stream` for `Chunk`s used in requests and responses.
11
+ #[ must_use = "streams do nothing unless polled" ]
11
12
#[ derive( Debug ) ]
12
13
pub struct Body ( TokioBody ) ;
13
14
You can’t perform that action at this time.
0 commit comments