Skip to content

Commit

Permalink
Remove stringify call from Yaml serializer (chapel-lang#22833)
Browse files Browse the repository at this point in the history
Fix a test failure following
chapel-lang#22068 by replacing a call to
`stringify` with `"%?".format()` in the Yaml module.

- [x] yaml tests passing

[ reviewed by @mppf ] - Thanks!
  • Loading branch information
jeremiah-corrado authored Jul 28, 2023
2 parents 2dcdd4b + d82e466 commit e557877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/packages/YAML.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ module YAML {
} else if (isClassType(t) && val == nil) || isNothingType(t) {
return b"~";
} else {
return stringify(val);
return try! "%?".format(val);
}
}

Expand Down

0 comments on commit e557877

Please sign in to comment.