Skip to content

Commit ea22800

Browse files
Auto-format: cargo fmt --all
1 parent c263e50 commit ea22800

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

crates/stdlib/src/faulthandler.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,10 @@ mod decl {
937937
libc::signal(signum, user.previous);
938938
libc::raise(signum);
939939
// Re-register our handler
940-
libc::signal(signum, faulthandler_user_signal as *const () as libc::sighandler_t);
940+
libc::signal(
941+
signum,
942+
faulthandler_user_signal as *const () as libc::sighandler_t,
943+
);
941944
}
942945
}
943946
}
@@ -988,7 +991,10 @@ mod decl {
988991
let previous = if !user_signals::is_enabled(signum) {
989992
// Install signal handler
990993
let prev = unsafe {
991-
libc::signal(args.signum, faulthandler_user_signal as *const () as libc::sighandler_t)
994+
libc::signal(
995+
args.signum,
996+
faulthandler_user_signal as *const () as libc::sighandler_t,
997+
)
992998
};
993999
if prev == libc::SIG_ERR {
9941000
return Err(vm.new_os_error(format!(

0 commit comments

Comments
 (0)