Unverified Commit 75056c6a authored by Matteo Bigoi's avatar Matteo Bigoi Committed by GitHub
Browse files

Fix bug where where format argument is not a literal string (#1266)

parent f627311b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
                            )