mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-11-25 01:31:03 +00:00
fix: allow dead_code for MutexGuard
This commit is contained in:
parent
9e09e1fb31
commit
bd90c532e7
1 changed files with 2 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue