We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TestProcess.guard
_guard
1 parent c2c26ed commit ff779cdCopy full SHA for ff779cd
src/currentprocess.rs
@@ -256,8 +256,7 @@ impl Default for OSProcess {
256
#[cfg(feature = "test")]
257
pub struct TestProcess {
258
pub process: Process,
259
- #[allow(dead_code)] // guard is dropped at the end of the test
260
- guard: DefaultGuard,
+ _guard: DefaultGuard, // guard is dropped at the end of the test
261
}
262
263
@@ -303,7 +302,7 @@ impl From<TestContext> for TestProcess {
303
302
let guard = crate::cli::log::tracing_subscriber(&inner).set_default();
304
Self {
305
process: inner,
306
- guard,
+ _guard: guard,
307
308
309
0 commit comments