From aa0fca4929cf86bb0b9f9d5afb4bf66f51aa0cb8 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 19 Jun 2018 19:54:29 -0400 Subject: [PATCH] tag futures as must use --- tokio-postgres/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tokio-postgres/src/lib.rs b/tokio-postgres/src/lib.rs index 1de40a23..f7b275be 100644 --- a/tokio-postgres/src/lib.rs +++ b/tokio-postgres/src/lib.rs @@ -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 {