From b80b0aca2e68a2f55390db0c8a509041ac2af6f6 Mon Sep 17 00:00:00 2001 From: TJ Usiyan Date: Wed, 25 Dec 2024 15:09:18 -0800 Subject: [PATCH] Discriminants are Sendable --- Sources/DiscriminatedUnion/DiscriminatedUnion.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/DiscriminatedUnion/DiscriminatedUnion.swift b/Sources/DiscriminatedUnion/DiscriminatedUnion.swift index fd33c49..fc0037a 100644 --- a/Sources/DiscriminatedUnion/DiscriminatedUnion.swift +++ b/Sources/DiscriminatedUnion/DiscriminatedUnion.swift @@ -20,7 +20,7 @@ public protocol DiscriminatedUnion { var discriminant: Discriminant { get } } -public protocol DiscriminantType: Hashable, Equatable, CaseIterable {} +public protocol DiscriminantType: Hashable, Equatable, CaseIterable, Sendable {} extension DiscriminatedUnion { public static func randomDiscriminant(