From b2ef481c09187f46eaea8b989e2ec35128709504 Mon Sep 17 00:00:00 2001 From: Ben Barham Date: Wed, 12 Feb 2025 21:25:03 -0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Require=20sendable=20userInfo=20value?= =?UTF-8?q?s=20in=20JSON.withEncoding(of:userInfo:=5F:)=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e1fd7c7efd521e11890b08a16a2d37fc2e26a05c. --- Sources/Testing/Support/JSON.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Testing/Support/JSON.swift b/Sources/Testing/Support/JSON.swift index 76c7b7f07..f23e51384 100644 --- a/Sources/Testing/Support/JSON.swift +++ b/Sources/Testing/Support/JSON.swift @@ -29,7 +29,7 @@ enum JSON { /// - Returns: Whatever is returned by `body`. /// /// - Throws: Whatever is thrown by `body` or by the encoding process. - static func withEncoding(of value: some Encodable, userInfo: [CodingUserInfoKey: any Sendable] = [:], _ body: (UnsafeRawBufferPointer) throws -> R) throws -> R { + static func withEncoding(of value: some Encodable, userInfo: [CodingUserInfoKey: Any] = [:], _ body: (UnsafeRawBufferPointer) throws -> R) throws -> R { #if canImport(Foundation) let encoder = JSONEncoder()