Skip to content

Commit 6f41a94

Browse files
github-actions[bot]youknowone
authored andcommitted
Auto-format: cargo fmt --all
1 parent 1740b08 commit 6f41a94

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

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)