formatting

This commit is contained in:
Patrick He committed 2023-05-19 05:12:23 -04:00
1 parent f4b54082cf
commit ab3862d7f4
1 file changed
+4 -1
+4 -1
View File
@@ -612,7 +612,10 @@ impl ExecutingFrame<'_> {
if fastlocals[idx].is_none() {
return Err(vm.new_exception_msg(
vm.ctx.exceptions.unbound_local_error.to_owned(),
format!("local variable '{}' referenced before assignment", self.code.varnames[idx]),
format!(
"local variable '{}' referenced before assignment",
self.code.varnames[idx]
),
));
}
fastlocals[idx] = None;