From dccdd69a9b1f7c1e2ddefa128e0d4c2270c8e45b Mon Sep 17 00:00:00 2001 From: Sunjay Varma Date: Tue, 12 May 2020 15:21:23 -0400 Subject: [PATCH] Immediately drop lock Co-authored-by: Eliza Weisman --- tokio/tests/sync_mutex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/tests/sync_mutex.rs b/tokio/tests/sync_mutex.rs index 6107f8e22bd..7531da76282 100644 --- a/tokio/tests/sync_mutex.rs +++ b/tokio/tests/sync_mutex.rs @@ -127,7 +127,7 @@ async fn aborted_future_2() { } // This should succeed as there is no lock left for the mutex. timeout(Duration::from_millis(1u64), async move { - let _g = m1.lock().await; + let _ = m1.lock().await; }) .await .expect("Mutex is locked");