mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
add #[must_use] to more futures and streams (#1309)
This commit is contained in:
@@ -46,7 +46,7 @@ pub struct TcpStream {
|
||||
|
||||
/// Future returned by `TcpStream::connect` which will resolve to a `TcpStream`
|
||||
/// when the stream is connected.
|
||||
#[must_use = "futures do nothing unless polled"]
|
||||
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
||||
struct ConnectFuture {
|
||||
inner: ConnectFutureState,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user