Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jun 11, 2024
1 parent 0503ca7 commit f72e4a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion std/src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ fn rust_panic_with_hook(
// recursive panics. However if the message is just a string, no user-defined
// code is involved in printing it, so that is risk-free.
let message: &str = payload.as_str().unwrap_or_default();
rtprintpanic!("panicked at {location}:\n{message}\nthread panicked while processing panic. aborting.\n");
rtprintpanic!(
"panicked at {location}:\n{message}\nthread panicked while processing panic. aborting.\n"
);
}
panic_count::MustAbort::AlwaysAbort => {
// Unfortunately, this does not print a backtrace, because creating
Expand Down

0 comments on commit f72e4a9

Please sign in to comment.