Skip to content

Commit

Permalink
DateFormatter subclasses must restate @unchecked Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
matux committed Aug 16, 2024
1 parent e56f3e1 commit 05c0383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RollbarNotifier/Sources/RollbarReport/Report/Timestamp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 05c0383

Please sign in to comment.