We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fe8c42 commit 1b232c2Copy full SHA for 1b232c2
src/currentprocess.rs
@@ -180,8 +180,7 @@ impl Default for OSProcess {
180
#[cfg(feature = "test")]
181
pub struct TestProcess {
182
pub process: Process,
183
- #[allow(dead_code)] // guard is dropped at the end of the test
184
- guard: DefaultGuard,
+ _guard: DefaultGuard,
185
}
186
187
@@ -227,7 +226,7 @@ impl From<TestContext> for TestProcess {
227
226
let guard = crate::cli::log::tracing_subscriber(&inner).set_default();
228
Self {
229
process: inner,
230
- guard,
+ _guard: guard,
231
232
233
0 commit comments