From 05c03832e7d708171ac23e738bf45f5b2e304eba Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Fri, 16 Aug 2024 11:38:58 -0300 Subject: [PATCH] `DateFormatter` subclasses must restate `@unchecked Sendable` --- RollbarNotifier/Sources/RollbarReport/Report/Timestamp.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RollbarNotifier/Sources/RollbarReport/Report/Timestamp.swift b/RollbarNotifier/Sources/RollbarReport/Report/Timestamp.swift index 1ad4ed9d..94e15a12 100644 --- a/RollbarNotifier/Sources/RollbarReport/Report/Timestamp.swift +++ b/RollbarNotifier/Sources/RollbarReport/Report/Timestamp.swift @@ -37,7 +37,7 @@ struct Timestamp: RawRepresentable { extension Timestamp: Equatable, Comparable, Hashable, Codable {} -private final class ISO8601Formatter: DateFormatter { +private final class ISO8601Formatter: DateFormatter, @unchecked Sendable { required init?(coder: NSCoder) { super.init(coder: coder) @@ -52,7 +52,7 @@ private final class ISO8601Formatter: DateFormatter { } } -private final class RFC3339Formatter: DateFormatter { +private final class RFC3339Formatter: DateFormatter, @unchecked Sendable { required init?(coder: NSCoder) { super.init(coder: coder)