diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2024-06-11 15:46:15 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2024-06-11 15:47:00 +0200 |
| commit | a6e23b126b925b270663436a1d2f4d24cc5f4711 (patch) | |
| tree | 1f3cd65507029dfccb8f456c5335e382b689f91b /library/std/src/panicking.rs | |
| parent | a345c3daf65857fb12926c3c5f4c9d8e2ca00f00 (diff) | |
| download | rust-a6e23b126b925b270663436a1d2f4d24cc5f4711.tar.gz rust-a6e23b126b925b270663436a1d2f4d24cc5f4711.zip | |
Formatting.
Diffstat (limited to 'library/std/src/panicking.rs')
| -rw-r--r-- | library/std/src/panicking.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/std/src/panicking.rs b/library/std/src/panicking.rs index e4d2ee7d986..8fd8134c111 100644 --- a/library/std/src/panicking.rs +++ b/library/std/src/panicking.rs @@ -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 |
