diff --git a/src/lib.rs b/src/lib.rs index ee6bd3e..fc279e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -278,6 +278,8 @@ mod tests { use tokio::sync::{Mutex, MutexGuard}; use tokio::task; + // field 0 is never read, but its drop is important + #[allow(dead_code)] struct TestGuard(MutexGuard<'static, ()>, T); impl Deref for TestGuard {