mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-11-29 03:31:00 +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::sync::{Mutex, MutexGuard};
|
||||||
use tokio::task;
|
use tokio::task;
|
||||||
|
|
||||||
|
// field 0 is never read, but its drop is important
|
||||||
|
#[allow(dead_code)]
|
||||||
struct TestGuard<T>(MutexGuard<'static, ()>, T);
|
struct TestGuard<T>(MutexGuard<'static, ()>, T);
|
||||||
|
|
||||||
impl<T> Deref for TestGuard<T> {
|
impl<T> Deref for TestGuard<T> {
|
||||||
|
|
Loading…
Reference in a new issue