We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44684c1 + d328594 commit 0e7ce39Copy full SHA for 0e7ce39
Sources/Testing/Support/JSON.swift
@@ -29,7 +29,7 @@ enum JSON {
29
/// - Returns: Whatever is returned by `body`.
30
///
31
/// - Throws: Whatever is thrown by `body` or by the encoding process.
32
- static func withEncoding<R>(of value: some Encodable, userInfo: [CodingUserInfoKey: Any] = [:], _ body: (UnsafeRawBufferPointer) throws -> R) throws -> R {
+ static func withEncoding<R>(of value: some Encodable, userInfo: [CodingUserInfoKey: any Sendable] = [:], _ body: (UnsafeRawBufferPointer) throws -> R) throws -> R {
33
#if canImport(Foundation)
34
let encoder = JSONEncoder()
35
0 commit comments