mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-31 00:00:07 +02:00
sync: add #[must_use] to lock guards (#4886)
This commit is contained in:
@@ -30,7 +30,7 @@ fn mutex_blocking_lock_panic_caller() -> Result<(), Box<dyn Error>> {
|
||||
let rt = basic();
|
||||
rt.block_on(async {
|
||||
let mutex = Mutex::new(5_u32);
|
||||
mutex.blocking_lock();
|
||||
let _g = mutex.blocking_lock();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user