From f884d06c00811214092995b0a3696ac9cb14c920 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Tue, 20 Jun 2023 09:20:26 -0700 Subject: [PATCH] Conform `MessageID` and `DiagnosticSeverity` to `Sendable` --- Sources/SwiftDiagnostics/Message.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftDiagnostics/Message.swift b/Sources/SwiftDiagnostics/Message.swift index dba55df09ba..8ff8f90b0fc 100644 --- a/Sources/SwiftDiagnostics/Message.swift +++ b/Sources/SwiftDiagnostics/Message.swift @@ -16,7 +16,7 @@ /// Two diagnostics with the same ID don’t need to necessarily have the exact /// same wording. Eg. it’s possible that the message contains more context when /// available. -public struct MessageID: Hashable { +public struct MessageID: Hashable, Sendable { private let domain: String private let id: String @@ -26,7 +26,7 @@ public struct MessageID: Hashable { } } -public enum DiagnosticSeverity { +public enum DiagnosticSeverity: Sendable { case error case warning case note