Skip to content

Commit

Permalink
lib: Fix compilation error uncovered after fixing a typo
Browse files Browse the repository at this point in the history
Fix compilation error that was uncovered after fixing a typo inside
the `lib` subcrate when the `launcher` and `panic` features are
enabled.
  • Loading branch information
jsdanielh committed Feb 21, 2024
1 parent e1d5df4 commit fe7c294
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/extras/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ use url::Url;
use crate::extras::deadlock::initialize_deadlock_detection;
#[cfg(feature = "logging")]
use crate::extras::logging::initialize_logging;
#[cfg(feature = "panic")]
use crate::extras::panic::initialize_panic_reporting;

pub fn go() -> Launcher {
Launcher::default()
Expand All @@ -25,7 +27,7 @@ pub fn go() -> Launcher {
#[derive(Debug, Default)]
pub struct PanicMode {
/// Write panics into log
_logging: bool,
logging: bool,

/// Prints panic message with instruction to report and provides a dump file with stack trace.
_human_panic: bool,
Expand All @@ -43,7 +45,7 @@ pub struct PanicMode {
pub struct Launcher {
deadlock_detection: bool,
logging: bool,
_panic: PanicMode,
panic: PanicMode,
}

impl Launcher {
Expand All @@ -69,5 +71,6 @@ impl Launcher {
self.panic = PanicMode::default();
self.panic.logging = true;
initialize_panic_reporting();
self
}
}

0 comments on commit fe7c294

Please sign in to comment.