mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
runtime: mark EnterGuard with must_use (#3609)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user