Fix concurrency warning for OSLog.

This commit is contained in:
Brent Simmons 2024-05-01 21:32:07 -07:00
parent f3e8d5332f
commit 9f97b08475
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ public extension Notification.Name {
public struct AccountSyncError {
private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
// OSLog is supposedly Sendable and will be annotated that way in the future:
// https://forums.developer.apple.com/forums/thread/747816
nonisolated(unsafe) private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
public let account: Account
public let error: Error