Skip to content

Commit 21d9e22

Browse files
Auto-format: cargo fmt --all
1 parent 8c02aac commit 21d9e22

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

crates/vm/src/builtins/namespace.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ impl Initializer for PyNamespace {
9999

100100
// Validate keys are strings and set attributes
101101
for (key, value) in dict.into_iter() {
102-
let key_str = key.downcast_ref::<crate::builtins::PyStr>().ok_or_else(|| {
103-
vm.new_type_error(format!(
104-
"keywords must be strings, not '{}'",
105-
key.class().name()
106-
))
107-
})?;
102+
let key_str = key
103+
.downcast_ref::<crate::builtins::PyStr>()
104+
.ok_or_else(|| {
105+
vm.new_type_error(format!(
106+
"keywords must be strings, not '{}'",
107+
key.class().name()
108+
))
109+
})?;
108110
zelf.as_object().set_attr(key_str, value, vm)?;
109111
}
110112
}

0 commit comments

Comments
 (0)