diff --git a/Sources/Tools/DictionaryDecoder/Options/DictionaryDataDecodingStrategy.swift b/Sources/Tools/DictionaryDecoder/Options/DictionaryDataDecodingStrategy.swift index 3f3de189..39d271a5 100644 --- a/Sources/Tools/DictionaryDecoder/Options/DictionaryDataDecodingStrategy.swift +++ b/Sources/Tools/DictionaryDecoder/Options/DictionaryDataDecodingStrategy.swift @@ -10,5 +10,5 @@ public enum DictionaryDataDecodingStrategy { case base64 /// The strategy that decodes data using a user-defined function. - case custom((_ decoder: Decoder) throws -> Data) + case custom(@Sendable (_ decoder: Decoder) throws -> Data) } diff --git a/Sources/Tools/DictionaryDecoder/Options/DictionaryDateDecodingStrategy.swift b/Sources/Tools/DictionaryDecoder/Options/DictionaryDateDecodingStrategy.swift index 0809e32d..a3dca17b 100644 --- a/Sources/Tools/DictionaryDecoder/Options/DictionaryDateDecodingStrategy.swift +++ b/Sources/Tools/DictionaryDecoder/Options/DictionaryDateDecodingStrategy.swift @@ -20,5 +20,5 @@ public enum DictionaryDateDecodingStrategy { case formatted(DateFormatter) /// The strategy that formats custom dates by calling a user-defined function. - case custom((_ decoder: Decoder) throws -> Date) + case custom(@Sendable (_ decoder: Decoder) throws -> Date) } diff --git a/Sources/Tools/DictionaryDecoder/Options/DictionaryKeyDecodingStrategy.swift b/Sources/Tools/DictionaryDecoder/Options/DictionaryKeyDecodingStrategy.swift index 0f5c9670..7c5334e8 100644 --- a/Sources/Tools/DictionaryDecoder/Options/DictionaryKeyDecodingStrategy.swift +++ b/Sources/Tools/DictionaryDecoder/Options/DictionaryKeyDecodingStrategy.swift @@ -7,5 +7,5 @@ public enum DictionaryKeyDecodingStrategy { case useDefaultKeys /// A key decoding strategy defined by the closure you supply. - case custom((_ codingPath: [CodingKey]) -> CodingKey) + case custom(@Sendable (_ codingPath: [CodingKey]) -> CodingKey) } diff --git a/Tests/Tools/DictionaryDecoder/DictionaryDecoderTesting.swift b/Tests/Tools/DictionaryDecoder/DictionaryDecoderTesting.swift index 6feae332..2ad7905c 100644 --- a/Tests/Tools/DictionaryDecoder/DictionaryDecoderTesting.swift +++ b/Tests/Tools/DictionaryDecoder/DictionaryDecoderTesting.swift @@ -28,7 +28,7 @@ extension DictionaryDecoderTesting { func assertDecoderSucceeds( decoding expectedValue: [Key: Value], from dictionary: [String: Any], - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line ) { do { @@ -48,7 +48,7 @@ extension DictionaryDecoderTesting { func assertDecoderSucceeds( decoding valueType: [Key: Value].Type, from dictionary: [String: Any], - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line ) { do { @@ -68,7 +68,7 @@ extension DictionaryDecoderTesting { func assertDecoderSucceeds( decoding expectedValue: T, from dictionary: [String: Any], - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line ) { do { @@ -83,7 +83,7 @@ extension DictionaryDecoderTesting { func assertDecoderSucceeds( decoding valueType: T.Type, from dictionary: [String: Any], - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line ) { do { @@ -103,7 +103,7 @@ extension DictionaryDecoderTesting { func assertDecoderFails( decoding valueType: T.Type, from dictionary: [String: Any], - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line, errorValidation: (_ error: Error) -> Bool ) { diff --git a/Tests/Tools/URLQueryDecoder/URLQueryDecoderTesting.swift b/Tests/Tools/URLQueryDecoder/URLQueryDecoderTesting.swift index b1cff05f..008718be 100644 --- a/Tests/Tools/URLQueryDecoder/URLQueryDecoderTesting.swift +++ b/Tests/Tools/URLQueryDecoder/URLQueryDecoderTesting.swift @@ -13,7 +13,7 @@ extension URLQueryDecoderTesting { decoding valueType: [Key: Value].Type, from query: String, expecting expectedValue: [Key: Value], - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line ) { do { @@ -34,7 +34,7 @@ extension URLQueryDecoderTesting { decoding valueType: T.Type, from query: String, expecting expectedValue: T, - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line ) { do { @@ -49,7 +49,7 @@ extension URLQueryDecoderTesting { func assertDecoderFails( decoding valueType: T.Type, from query: String, - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line, errorValidation: (_ error: Error) -> Bool ) {