Skip to content

Commit 1b232c2

Browse files
committed
Rename guard field to _guard
1 parent 6fe8c42 commit 1b232c2

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
@@ -180,8 +180,7 @@ impl Default for OSProcess {
180180
#[cfg(feature = "test")]
181181
pub struct TestProcess {
182182
pub process: Process,
183-
#[allow(dead_code)] // guard is dropped at the end of the test
184-
guard: DefaultGuard,
183+
_guard: DefaultGuard,
185184
}
186185

187186
#[cfg(feature = "test")]
@@ -227,7 +226,7 @@ impl From<TestContext> for TestProcess {
227226
let guard = crate::cli::log::tracing_subscriber(&inner).set_default();
228227
Self {
229228
process: inner,
230-
guard,
229+
_guard: guard,
231230
}
232231
}
233232
}

0 commit comments

Comments
 (0)