mirror of https://github.com/smithy-lang/smithy-rs
Fix bug where where format argument is not a literal string (#1266)
This commit is contained in:
parent
f627311b48
commit
75056c6a78
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue