Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa0fca4

Browse files
committed
tag futures as must use
1 parent e9db2bf commit aa0fca4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tokio-postgres/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ impl Client {
7070
}
7171
}
7272

73+
#[must_use = "futures do nothing unless polled"]
7374
pub struct Connection(proto::Connection);
7475

7576
impl Connection {
@@ -91,6 +92,7 @@ impl Future for Connection {
9192
}
9293
}
9394

95+
#[must_use = "futures do nothing unless polled"]
9496
pub struct Handshake(proto::HandshakeFuture);
9597

9698
impl Future for Handshake {
@@ -104,6 +106,7 @@ impl Future for Handshake {
104106
}
105107
}
106108

109+
#[must_use = "futures do nothing unless polled"]
107110
pub struct Prepare(proto::PrepareFuture);
108111

109112
impl Future for Prepare {

0 commit comments

Comments
 (0)