Skip to content

Commit cfe479b

Browse files
Auto-format: cargo fmt --all
1 parent 0bdcf26 commit cfe479b

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎crates/vm/src/stdlib/posix.rs‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,18 +732,15 @@ pub mod module {
732732
vm.signal_handlers
733733
.get_or_init(crate::signal::new_signal_handlers);
734734

735-
let after_forkers_child: Vec<PyObjectRef> =
736-
vm.state.after_forkers_child.lock().clone();
735+
let after_forkers_child: Vec<PyObjectRef> = vm.state.after_forkers_child.lock().clone();
737736
run_at_forkers(after_forkers_child, false, vm);
738737
}
739738

740739
/// Force-unlock a PyMutex if held by a dead thread after fork.
741740
///
742741
/// # Safety
743742
/// Must only be called after fork() in the child process.
744-
unsafe fn force_unlock_mutex_after_fork<T>(
745-
mutex: &crate::common::lock::PyMutex<T>,
746-
) {
743+
unsafe fn force_unlock_mutex_after_fork<T>(mutex: &crate::common::lock::PyMutex<T>) {
747744
if mutex.try_lock().is_none() {
748745
// SAFETY: Lock is held by a dead thread after fork.
749746
unsafe { mutex.force_unlock() };

‎crates/vm/src/stdlib/sys.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,7 @@ mod sys {
827827
Ok(exc) => {
828828
// PyErr_Display: try traceback._print_exception_bltin first
829829
if let Ok(tb_mod) = vm.import("traceback", 0)
830-
&& let Ok(print_exc_builtin) =
831-
tb_mod.get_attr("_print_exception_bltin", vm)
830+
&& let Ok(print_exc_builtin) = tb_mod.get_attr("_print_exception_bltin", vm)
832831
&& print_exc_builtin
833832
.call((exc.as_object().to_owned(),), vm)
834833
.is_ok()

0 commit comments

Comments
 (0)