mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
add #[must_use] to more futures and streams (#1309)
This commit is contained in:
@@ -7,7 +7,7 @@ use std::task::{Context, Poll};
|
||||
/// A future that receives a datagram from the connected address.
|
||||
///
|
||||
/// This `struct` is created by [`recv`](crate::UnixDatagram::recv).
|
||||
#[must_use = "futures do nothing unless polled"]
|
||||
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
||||
#[derive(Debug)]
|
||||
pub struct Recv<'a, 'b> {
|
||||
socket: &'a mut UnixDatagram,
|
||||
|
||||
Reference in New Issue
Block a user