Skip to content

Commit f851f37

Browse files
Auto-format: cargo fmt --all
1 parent 349e3a7 commit f851f37

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

crates/vm/src/vm/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,10 @@ impl VirtualMachine {
14561456
pub(crate) fn set_exception(&self, exc: Option<PyBaseExceptionRef>) {
14571457
// don't be holding the RefCell guard while __del__ is called
14581458
let mut excs = self.exceptions.borrow_mut();
1459-
debug_assert!(!excs.stack.is_empty(), "set_exception called with empty exception stack");
1459+
debug_assert!(
1460+
!excs.stack.is_empty(),
1461+
"set_exception called with empty exception stack"
1462+
);
14601463
if let Some(top) = excs.stack.last_mut() {
14611464
let prev = core::mem::replace(top, exc);
14621465
drop(excs);

crates/vm/src/vm/thread.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use crate::frame::Frame;
2-
use crate::{AsObject, PyObject, VirtualMachine};
3-
#[cfg(feature = "threading")]
4-
use crate::builtins::PyBaseExceptionRef;
51
#[cfg(feature = "threading")]
62
use super::FramePtr;
73
#[cfg(feature = "threading")]
4+
use crate::builtins::PyBaseExceptionRef;
5+
use crate::frame::Frame;
6+
use crate::{AsObject, PyObject, VirtualMachine};
7+
#[cfg(feature = "threading")]
88
use alloc::sync::Arc;
99
use core::{
1010
cell::{Cell, RefCell},

0 commit comments

Comments
 (0)