From edb3375616bf722bf8baa97ad53d461190317d7d Mon Sep 17 00:00:00 2001 From: Ibraheem Ahmed Date: Thu, 6 May 2021 01:23:54 -0400 Subject: [PATCH] improve must_use comment on RemoteHandle --- futures-util/src/future/future/remote_handle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/future/future/remote_handle.rs b/futures-util/src/future/future/remote_handle.rs index 861e4c1cd8..1358902cab 100644 --- a/futures-util/src/future/future/remote_handle.rs +++ b/futures-util/src/future/future/remote_handle.rs @@ -36,7 +36,7 @@ use { /// must be careful with regard to unwind safety because the thread in which the future /// is polled will keep running after the panic and the thread running the [RemoteHandle] /// will unwind. -#[must_use = "futures do nothing unless you `.await` or poll them"] +#[must_use = "dropping a remote handle cancels the underlying future"] #[derive(Debug)] #[cfg_attr(docsrs, doc(cfg(feature = "channel")))] pub struct RemoteHandle {