Skip to content

Commit

Permalink
Remove usage of always empty writable in JsonParserGenerator
Browse files Browse the repository at this point in the history
The writable calculates a string that it never writes.

This was added in #2131.
  • Loading branch information
david-perez committed Jan 10, 2023
1 parent fd8b2d4 commit bd7941c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ class JsonParserGenerator(

private fun RustWriter.deserializeBlob(target: BlobShape) {
rustTemplate(
"#{expect_blob_or_null}(tokens.next())?#{ConvertFrom:W}",
"ConvertFrom" to writable { RuntimeType.blob(runtimeConfig).toSymbol().rustType().render() },
"#{expect_blob_or_null}(tokens.next())?",
*codegenScope,
)
}
Expand Down

0 comments on commit bd7941c

Please sign in to comment.