Skip to content

Commit f18ce64

Browse files
Auto-format: cargo fmt --all
1 parent 9619cfc commit f18ce64

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎crates/vm/src/builtins/function.rs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,17 @@ unsafe impl Traverse for PyFunction {
8888

8989
// Clear module, doc, and type_params (Py_CLEAR)
9090
if let Some(mut guard) = self.module.try_lock() {
91-
let old_module = std::mem::replace(&mut *guard, Context::genesis().none.to_owned().into());
91+
let old_module =
92+
std::mem::replace(&mut *guard, Context::genesis().none.to_owned().into());
9293
out.push(old_module);
9394
}
9495
if let Some(mut guard) = self.doc.try_lock() {
9596
let old_doc = std::mem::replace(&mut *guard, Context::genesis().none.to_owned().into());
9697
out.push(old_doc);
9798
}
9899
if let Some(mut guard) = self.type_params.try_lock() {
99-
let old_type_params = std::mem::replace(&mut *guard, Context::genesis().empty_tuple.to_owned());
100+
let old_type_params =
101+
std::mem::replace(&mut *guard, Context::genesis().empty_tuple.to_owned());
100102
out.push(old_type_params.into());
101103
}
102104

0 commit comments

Comments
 (0)