Skip to content

Commit cd4290a

Browse files
authored
Add retroactive where appropriate (#98)
Removes compiler warning when we add dependency on Codable.
1 parent 3a9de7c commit cd4290a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AWSLambdaEvents/Utils/HTTP.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extension String.UTF8View {
7474
}
7575
}
7676

77-
extension HTTPResponse.Status: Codable {
77+
extension HTTPResponse.Status: @retroactive Codable {
7878
public func encode(to encoder: any Encoder) throws {
7979
var container = encoder.singleValueContainer()
8080
try container.encode(self.code)
@@ -86,7 +86,7 @@ extension HTTPResponse.Status: Codable {
8686
}
8787
}
8888

89-
extension HTTPRequest.Method: Codable {
89+
extension HTTPRequest.Method: @retroactive Codable {
9090
public func encode(to encoder: any Encoder) throws {
9191
var container = encoder.singleValueContainer()
9292
try container.encode(self.rawValue)

0 commit comments

Comments
 (0)