Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rebello95 committed Oct 26, 2023
1 parent c902259 commit c4fbb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftProtobuf/JSONEncodingVisitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ internal struct JSONEncodingVisitor: Visitor {
) throws {
try startField(for: fieldNumber)
encoder.append(text: "{")
var mapVisitor = JSONMapEncodingVisitor(encoder: JSONEncoder(), options: options)
var mapVisitor = JSONMapEncodingVisitor(encoder: encoder, options: options)
if options.useDeterministicOrdering {
for (k,v) in map.sorted(by: { isOrderedBefore( $0.0, $1.0) }) {
try encode(&mapVisitor, k, v)
Expand Down

0 comments on commit c4fbb91

Please sign in to comment.