From 9982deab7b7799bcf5d0916717a239e5045643d0 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Fri, 10 Oct 2025 15:24:26 +0200 Subject: [PATCH] Conformed the AuthMethod and AuthTransport enumerations in the library target to the Sendable protocol. --- Sources/DiscogsService/Public/Enumerations/AuthMethod.swift | 2 +- Sources/DiscogsService/Public/Enumerations/AuthTransport.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/DiscogsService/Public/Enumerations/AuthMethod.swift b/Sources/DiscogsService/Public/Enumerations/AuthMethod.swift index 8f7fbf154..e33ca41d9 100644 --- a/Sources/DiscogsService/Public/Enumerations/AuthMethod.swift +++ b/Sources/DiscogsService/Public/Enumerations/AuthMethod.swift @@ -23,7 +23,7 @@ /// Personal access token | 🐰 High tier | ✔️ Yes | ✔️ Yes, for token holder only 👩 /// /// Please refer to the [Discogs documentation](https://www.discogs.com/developers#page:authentication,header:authentication-discogs-auth-flow) for further details. -public enum AuthMethod { +public enum AuthMethod: Equatable, Sendable { /// A consumer key and secret that allows access to endpoints that requires authentication. case consumer(key: String, secret: String) /// No authentication method defined. diff --git a/Sources/DiscogsService/Public/Enumerations/AuthTransport.swift b/Sources/DiscogsService/Public/Enumerations/AuthTransport.swift index 6a90a1f0b..5e3e67b25 100644 --- a/Sources/DiscogsService/Public/Enumerations/AuthTransport.swift +++ b/Sources/DiscogsService/Public/Enumerations/AuthTransport.swift @@ -13,7 +13,7 @@ // ===----------------------------------------------------------------------=== /// A representation of the available transport options to send credentials in authenticated requests. -public enum AuthTransport { +public enum AuthTransport: Sendable { /// Authentication credential are sent in a request as an `Authentication` header. /// /// This means that the header will be added to any existing header in a request, like this: