Skip to content

Commit 9634bef

Browse files
Use shared encoder on pin content
1 parent 33de9e3 commit 9634bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MCMap/CartographyMapFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ extension CartographyMapFile: FileDocument {
352352
if supportedFeatures.contains(.separateLibrary) {
353353
for pin in self.pins {
354354
let filename = pin.name + ".json"
355-
let encoded = try JSONEncoder().encode(versioned: pin)
355+
let encoded = try Self.jsonEncoder().encode(versioned: pin)
356356
pinWrapperFiles[filename] = FileWrapper(regularFileWithContents: encoded)
357357
}
358358
}

0 commit comments

Comments
 (0)