Skip to content

Commit 884af3f

Browse files
committed
fix strict concurrency error
1 parent b76f149 commit 884af3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ReerJSON/Utilities.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ extension Optional {
136136
}
137137

138138
#if os(Linux)
139-
let _iso8601Formatter: ISO8601DateFormatter = {
139+
nonisolated(unsafe) let _iso8601Formatter: ISO8601DateFormatter = {
140140
let formatter = ISO8601DateFormatter()
141141
formatter.formatOptions = .withInternetDateTime
142142
return formatter
143143
}()
144144
#else
145-
let _iso8601Formatter: JJLISO8601DateFormatter = {
145+
nonisolated(unsafe) let _iso8601Formatter: JJLISO8601DateFormatter = {
146146
let formatter = JJLISO8601DateFormatter()
147147
formatter.formatOptions = .withInternetDateTime
148148
return formatter

0 commit comments

Comments
 (0)