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 51f20ac commit db2e055
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ pub const fn panic_nounwind_fmt(fmt: fmt::Arguments<'_>, force_no_backtrace: boo
}

// PanicInfo with the `can_unwind` flag set to false forces an abort.
let pi =
PanicInfo::new(fmt, Location::caller(), /* can_unwind */ false, force_no_backtrace);
let pi = PanicInfo::new(
fmt,
Location::caller(),
/* can_unwind */ false,
force_no_backtrace,
);

// SAFETY: `panic_impl` is defined in safe Rust code and thus is safe to call.
unsafe { panic_impl(&pi) }
Expand Down

0 comments on commit db2e055

Please sign in to comment.