1
Fork 0
This commit is contained in:
Gus Caplan 2023-03-17 21:00:10 -07:00
parent d1712f49d7
commit 3ae03c7aee
2 changed files with 3 additions and 3 deletions

View file

@ -308,7 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
BacktraceStyle::Short BacktraceStyle::Short
} }
}) })
.unwrap_or(if crate::sys::BACKTRACE_DEFAULT { .unwrap_or(if crate::sys::FULL_BACKTRACE_DEFAULT {
BacktraceStyle::Full BacktraceStyle::Full
} else { } else {
BacktraceStyle::Off BacktraceStyle::Off

View file

@ -80,8 +80,8 @@ cfg_if::cfg_if! {
cfg_if::cfg_if! { cfg_if::cfg_if! {
// Fuchsia components default to full backtrace. // Fuchsia components default to full backtrace.
if #[cfg(target_os = "fuchsia")] { if #[cfg(target_os = "fuchsia")] {
pub const BACKTRACE_DEFAULT: bool = true; pub const FULL_BACKTRACE_DEFAULT: bool = true;
} else { } else {
pub const BACKTRACE_DEFAULT: bool = false; pub const FULL_BACKTRACE_DEFAULT: bool = false;
} }
} }