From c290baf3580d38c3cce0a9d021853d9953638c70 Mon Sep 17 00:00:00 2001 From: Ryan Schmukler Date: Fri, 2 Aug 2019 16:41:44 -0400 Subject: [PATCH] fix false must_use warning on JoinHandle Removes the must_use requirement on the JoinHandle, since it is the result of a future being spawned - thus, the originating future will be polled to completion, whether or not the JoinHandle is polled. --- src/task.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/task.rs b/src/task.rs index c30ad55b..17944996 100644 --- a/src/task.rs +++ b/src/task.rs @@ -85,7 +85,6 @@ where /// A handle that awaits the result of a [`spawn`]ed future. /// /// [`spawn`]: fn.spawn.html -#[must_use = "futures do nothing unless you `.await` or poll them"] #[derive(Debug)] pub struct JoinHandle { pub(crate) rx: futures::channel::oneshot::Receiver,