Skip to content

Commit 0160cd1

Browse files
authored
Merge pull request RustPython#1402 from lntuition/Fix-typo
Fix Typo in vm/src/stdlib/pystruct.rs
2 parents eae1669 + c76739f commit 0160cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/stdlib/pystruct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn struct_pack(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
281281
if objtype::isinstance(&fmt_arg, &vm.ctx.str_type()) {
282282
let fmt_str = objstr::get_value(&fmt_arg);
283283

284-
let format_spec = parse_format_string(fmt_str).map_err(|e| vm.new_value_error(e))?;;
284+
let format_spec = parse_format_string(fmt_str).map_err(|e| vm.new_value_error(e))?;
285285

286286
if format_spec.codes.len() + 1 == args.args.len() {
287287
// Create data vector:

0 commit comments

Comments
 (0)