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
}
})
.unwrap_or(if crate::sys::BACKTRACE_DEFAULT {
.unwrap_or(if crate::sys::FULL_BACKTRACE_DEFAULT {
BacktraceStyle::Full
} else {
BacktraceStyle::Off

View File

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