Skip to content

Commit b815d47

Browse files
committed
Use cloned
1 parent 86cbc2e commit b815d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/vm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ impl VirtualMachine {
10161016
}
10171017

10181018
pub fn current_exception(&self) -> Option<PyObjectRef> {
1019-
self.exceptions.borrow().last().map(|x| x.clone())
1019+
self.exceptions.borrow().last().cloned()
10201020
}
10211021
}
10221022

0 commit comments

Comments
 (0)