Skip to content

Commit ff779cd

Browse files
committed
refactor(currentprocess): rename TestProcess.guard to _guard
1 parent c2c26ed commit ff779cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/currentprocess.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ impl Default for OSProcess {
256256
#[cfg(feature = "test")]
257257
pub struct TestProcess {
258258
pub process: Process,
259-
#[allow(dead_code)] // guard is dropped at the end of the test
260-
guard: DefaultGuard,
259+
_guard: DefaultGuard, // guard is dropped at the end of the test
261260
}
262261

263262
#[cfg(feature = "test")]
@@ -303,7 +302,7 @@ impl From<TestContext> for TestProcess {
303302
let guard = crate::cli::log::tracing_subscriber(&inner).set_default();
304303
Self {
305304
process: inner,
306-
guard,
305+
_guard: guard,
307306
}
308307
}
309308
}

0 commit comments

Comments
 (0)