Skip to content

Commit a9a3176

Browse files
committed
Remove unnecessary Sendable requirement on JSONEncoder
1 parent 67e436e commit a9a3176

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Sources/Hummingbird/Codable/JSON/JSONCoding.swift

-11
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,3 @@ extension JSONDecoder: RequestDecoder {
4848
return try self.decode(T.self, from: buffer)
4949
}
5050
}
51-
52-
/// `RequestDecoder` and `ResponseEncoder` both require conformance to `Sendable`. Given
53-
/// `JSONEncoder`` and `JSONDecoder`` conform to Sendable in macOS 13+ I think I can just
54-
/// back date the conformance to all versions of Swift, macOS we support
55-
#if hasFeature(RetroactiveAttribute)
56-
extension JSONEncoder: @retroactive @unchecked Sendable {}
57-
extension JSONDecoder: @retroactive @unchecked Sendable {}
58-
#else
59-
extension JSONEncoder: @unchecked Sendable {}
60-
extension JSONDecoder: @unchecked Sendable {}
61-
#endif

0 commit comments

Comments
 (0)