Skip to content

Commit 3e510c0

Browse files
Auto-format: cargo fmt --all
1 parent 35e8394 commit 3e510c0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

crates/vm/src/frame.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4328,12 +4328,11 @@ impl ExecutingFrame<'_> {
43284328
let __annotations__ = identifier!(vm, __annotations__);
43294329
let locals_obj = self.locals.as_object(vm);
43304330
// Try using locals as dict first, if not, fallback to generic method.
4331-
let has_annotations =
4332-
if let Some(d) = locals_obj.downcast_ref_if_exact::<PyDict>(vm) {
4333-
d.contains_key(__annotations__, vm)
4334-
} else {
4335-
self._in(vm, __annotations__.as_object(), locals_obj)?
4336-
};
4331+
let has_annotations = if let Some(d) = locals_obj.downcast_ref_if_exact::<PyDict>(vm) {
4332+
d.contains_key(__annotations__, vm)
4333+
} else {
4334+
self._in(vm, __annotations__.as_object(), locals_obj)?
4335+
};
43374336
if !has_annotations {
43384337
locals_obj.set_item(__annotations__, vm.ctx.new_dict().into(), vm)?;
43394338
}

0 commit comments

Comments
 (0)