Skip to content

Commit

Permalink
Fix bug where where format argument is not a literal string (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisidev authored Mar 18, 2022
1 parent f627311 commit 75056c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class JsonParserGenerator(
if (StructureGenerator.fallibleBuilder(shape, symbolProvider)) {
rustTemplate(
""".map_err(|err| #{Error}::new(
#{ErrorReason}::Custom(format!({}, err).into()), None)
#{ErrorReason}::Custom(format!("{}", err).into()), None)
)?""",
*codegenScope
)
Expand Down

0 comments on commit 75056c6

Please sign in to comment.