Visitar URL original
Auto-format: cargo fmt --all · RustPython/RustPython@1201604 · GitHub
Skip to content

Commit 1201604

Browse files
Auto-format: cargo fmt --all
1 parent 7793e47 commit 1201604

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎crates/vm/src/vm/mod.rs‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,12 +1448,7 @@ impl VirtualMachine {
14481448
}
14491449

14501450
pub(crate) fn current_exception(&self) -> Option<PyBaseExceptionRef> {
1451-
self.exceptions
1452-
.borrow()
1453-
.stack
1454-
.last()
1455-
.cloned()
1456-
.flatten()
1451+
self.exceptions.borrow().stack.last().cloned().flatten()
14571452
}
14581453

14591454
pub(crate) fn set_exception(&self, exc: Option<PyBaseExceptionRef>) {

0 commit comments

Comments
 (0)