From 82645ec760917961cfa08c9c0c7104a57a0fa4b1 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 2 Aug 2024 17:12:11 +0200 Subject: [PATCH] Fix Swift 6 concurency error (#127) --- Sources/CustomDump/Conformances/Foundation.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CustomDump/Conformances/Foundation.swift b/Sources/CustomDump/Conformances/Foundation.swift index e9d74e3..d0a4b87 100644 --- a/Sources/CustomDump/Conformances/Foundation.swift +++ b/Sources/CustomDump/Conformances/Foundation.swift @@ -47,12 +47,12 @@ extension Calendar: CustomDumpReflectable { "Date(\(Self.formatter.string(from: self)))" } - private static let formatter: DateFormatter = { + private static var formatter: DateFormatter { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX" formatter.timeZone = TimeZone(secondsFromGMT: 0)! return formatter - }() + } } #endif