From 445c8d5a0d175ad0029bab3864a27faafdfc0681 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Wed, 31 May 2023 12:43:15 +0200 Subject: [PATCH] chore(deps): Bump minidump to 0.16.0 --- examples/minidump_stackwalk/Cargo.toml | 4 ++-- examples/minidump_stackwalk/src/main.rs | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/minidump_stackwalk/Cargo.toml b/examples/minidump_stackwalk/Cargo.toml index bd2335d81..77129349d 100644 --- a/examples/minidump_stackwalk/Cargo.toml +++ b/examples/minidump_stackwalk/Cargo.toml @@ -10,8 +10,8 @@ publish = false [dependencies] async-trait = "0.1.53" clap = "3.1.0" -minidump = "0.14.0" -minidump-processor = "0.14.0" +minidump = "0.16.0" +minidump-processor = "0.16.0" symbolic = { path = "../../symbolic", features = ["symcache", "demangle", "cfi"] } thiserror = "1.0.31" tokio = {version = "1.18.1", features = ["macros", "rt"] } diff --git a/examples/minidump_stackwalk/src/main.rs b/examples/minidump_stackwalk/src/main.rs index 633638ac5..5f0a8b4d9 100644 --- a/examples/minidump_stackwalk/src/main.rs +++ b/examples/minidump_stackwalk/src/main.rs @@ -457,11 +457,9 @@ impl fmt::Display for Report<'_> { if let Some(ref assertion) = self.process_state.assertion { writeln!(f, "Assertion: {assertion}")?; } - if let Some(crash_reason) = self.process_state.crash_reason { - writeln!(f, "Crash reason: {crash_reason}")?; - } - if let Some(crash_address) = self.process_state.crash_address { - writeln!(f, "Crash address: 0x{crash_address:x}")?; + if let Some(ref exception_info) = self.process_state.exception_info { + writeln!(f, "Crash reason: {}", exception_info.reason)?; + writeln!(f, "Crash address: {}", exception_info.address)?; } if let Ok(duration) = self.process_state.time.duration_since(UNIX_EPOCH) { writeln!(f, "Crash time: {}", duration.as_secs())?;