fix: allow dead_code for MutexGuard

This commit is contained in:
Judson Lester 2024-09-16 12:20:56 -07:00
parent 9e09e1fb31
commit bd90c532e7
No known key found for this signature in database
GPG key ID: 12E21E4B9A3F82AA

View file

@ -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<T>(MutexGuard<'static, ()>, T);
impl<T> Deref for TestGuard<T> {