Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(process): rename TestProcess::_guard to _tracing_guard
  • Loading branch information
rami3l committed Mar 1, 2025
commit 789b0ad31b275ce28baf05ab1d150687fc449dfc
4 changes: 2 additions & 2 deletions src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl Default for OsProcess {
pub struct TestProcess {
pub process: Process,
pub console_filter: Handle<EnvFilter, Registry>,
_guard: DefaultGuard, // guard is dropped at the end of the test
_tracing_guard: DefaultGuard, // guard is dropped at the end of the test
}

#[cfg(feature = "test")]
Expand Down Expand Up @@ -237,7 +237,7 @@ impl From<TestContext> for TestProcess {
Self {
process: inner,
console_filter,
_guard: tracing_subscriber.set_default(),
_tracing_guard: tracing_subscriber.set_default(),
}
}
}
Expand Down