From 946db45593c1e5b9368e3ccc7da1d1683fca2c1b Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sat, 30 Mar 2024 21:55:29 +0000 Subject: [PATCH] Allow unused name for Locks --- serial_test/src/rwlock.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/serial_test/src/rwlock.rs b/serial_test/src/rwlock.rs index 3d0cd27..59096b9 100644 --- a/serial_test/src/rwlock.rs +++ b/serial_test/src/rwlock.rs @@ -36,6 +36,7 @@ impl<'a> Drop for MutexGuardWrapper<'a> { } impl Locks { + #[allow(unused_variables)] pub fn new(name: &str) -> Locks { Locks { arc: Arc::new(LockData {