tag futures as must use

This commit is contained in:
Steven Fackler
2018-06-19 19:54:29 -04:00
parent e9db2bf284
commit aa0fca4929

View File

@@ -70,6 +70,7 @@ impl Client {
}
}
#[must_use = "futures do nothing unless polled"]
pub struct Connection(proto::Connection);
impl Connection {
@@ -91,6 +92,7 @@ impl Future for Connection {
}
}
#[must_use = "futures do nothing unless polled"]
pub struct Handshake(proto::HandshakeFuture);
impl Future for Handshake {
@@ -104,6 +106,7 @@ impl Future for Handshake {
}
}
#[must_use = "futures do nothing unless polled"]
pub struct Prepare(proto::PrepareFuture);
impl Future for Prepare {