From 5413af5a2def63409db54e43800dbbe8f8db0d7f Mon Sep 17 00:00:00 2001 From: Scott Hoyt Date: Thu, 5 Jun 2025 16:54:00 -0700 Subject: [PATCH] DecodingMethod conforms to Sendable when Swift >= 5.5. --- Sources/Version+Codable.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Version+Codable.swift b/Sources/Version+Codable.swift index 66a1258..e706187 100644 --- a/Sources/Version+Codable.swift +++ b/Sources/Version+Codable.swift @@ -32,3 +32,7 @@ public extension CodingUserInfoKey { /// A value indicating what decoding method to use: tolerant or strict. Default value is strict static let decodingMethod = CodingUserInfoKey(rawValue: "dev.mxcl.Version.decodingMethod")! } + +#if swift(>=5.5) +extension DecodingMethod: Sendable {} +#endif