Skip to content

Commit

Permalink
runtime: mark EnterGuard with must_use (#3609)
Browse files Browse the repository at this point in the history
  • Loading branch information
farazshaikh committed Mar 12, 2021
1 parent edfff75 commit a1b4bde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio/src/runtime/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a1b4bde

Please sign in to comment.