Skip to content

Commit

Permalink
chore: Fix dead code clippy lint warning
Browse files Browse the repository at this point in the history
We can't just throw away the "dead code"; while it is indeed unused, we need its ownership, so the WorkerGuard is not dropped.
  • Loading branch information
foresterre committed Feb 10, 2024
1 parent bdf2dd8 commit 7c38870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo-msrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl TracingTarget {
}

enum TracingGuard {
NonBlockingGuard(tracing_appender::non_blocking::WorkerGuard),
NonBlockingGuard(#[allow(dead_code)] tracing_appender::non_blocking::WorkerGuard),
None,
}

Expand Down

0 comments on commit 7c38870

Please sign in to comment.