diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs index 76b28f24e36..5de23669b82 100644 --- a/tokio/src/runtime/handle.rs +++ b/tokio/src/runtime/handle.rs @@ -39,6 +39,7 @@ pub struct Handle { /// /// [`Runtime::enter`]: fn@crate::runtime::Runtime::enter #[derive(Debug)] +#[must_use = "Creating and dropping a guard does nothing"] pub struct EnterGuard<'a> { handle: &'a Handle, guard: context::EnterGuard,