Skip to content

Commit f94dd92

Browse files
ibraheemdevtaiki-e
authored andcommitted
improve must_use comment on RemoteHandle
1 parent 8666a25 commit f94dd92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-util/src/future/future/remote_handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use {
3636
/// must be careful with regard to unwind safety because the thread in which the future
3737
/// is polled will keep running after the panic and the thread running the [RemoteHandle]
3838
/// will unwind.
39-
#[must_use = "futures do nothing unless you `.await` or poll them"]
39+
#[must_use = "dropping a remote handle cancels the underlying future"]
4040
#[derive(Debug)]
4141
#[cfg_attr(docsrs, doc(cfg(feature = "channel")))]
4242
pub struct RemoteHandle<T> {

0 commit comments

Comments
 (0)