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