Skip to content

Commit

Permalink
Delegate, don't duplicate (#369)
Browse files Browse the repository at this point in the history
Duplication introduced in 4b8f2be.
  • Loading branch information
tamird committed Aug 6, 2020
1 parent 70ad093 commit 37ec940
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,7 @@ impl BacktraceFrameFmt<'_, '_, '_> {
filename: Option<BytesOrWideString<'_>>,
lineno: Option<u32>,
) -> fmt::Result {
// Fuchsia is unable to symbolize within a process so it has a special
// format which can be used to symbolize later. Print that instead of
// printing addresses in our own format here.
if cfg!(target_os = "fuchsia") {
self.print_raw_fuchsia(frame_ip)?;
} else {
self.print_raw_generic(frame_ip, symbol_name, filename, lineno, None)?;
}
self.symbol_index += 1;
Ok(())
self.print_raw_with_column(frame_ip, symbol_name, filename, lineno, None)
}

/// Adds a raw frame to the backtrace output, including column information.
Expand Down

0 comments on commit 37ec940

Please sign in to comment.