From 86dd1f3775509b90135c6d8d463ad8e8f90c655c Mon Sep 17 00:00:00 2001 From: Muukii Date: Fri, 28 Oct 2022 19:50:26 +0900 Subject: [PATCH] Patch --- Sources/JAYSON/JSON.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/JAYSON/JSON.swift b/Sources/JAYSON/JSON.swift index 5304f1d..b197d85 100644 --- a/Sources/JAYSON/JSON.swift +++ b/Sources/JAYSON/JSON.swift @@ -37,7 +37,7 @@ public enum JSONError: Error { case invalidJSONObject } -public struct JSON: Hashable { +public struct JSON: Hashable, @unchecked Sendable { public static func ==(lhs: JSON, rhs: JSON) -> Bool { return (lhs.source as? NSObject) == (rhs.source as? NSObject) @@ -48,7 +48,7 @@ public struct JSON: Hashable { } public static let null = JSON() - + public internal(set) var source: Any fileprivate let breadcrumb: Breadcrumb? @@ -135,7 +135,7 @@ public struct JSON: Hashable { extension JSON { - final class Breadcrumb: CustomStringConvertible, CustomDebugStringConvertible { + final class Breadcrumb: CustomStringConvertible, CustomDebugStringConvertible, Sendable { let json: JSON let path: String