From 1ad010d4f8fb8ec8ad506679ebd7157c35947216 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 5 Apr 2024 21:28:54 -0700 Subject: [PATCH] Mark Credentials types Sendable. --- Secrets/Sources/Secrets/Credentials.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Secrets/Sources/Secrets/Credentials.swift b/Secrets/Sources/Secrets/Credentials.swift index e7d0f0262..0db711cea 100644 --- a/Secrets/Sources/Secrets/Credentials.swift +++ b/Secrets/Sources/Secrets/Credentials.swift @@ -8,12 +8,12 @@ import Foundation -public enum CredentialsError: Error { +public enum CredentialsError: Error, Sendable { case incompleteCredentials case unhandledError(status: OSStatus) } -public enum CredentialsType: String { +public enum CredentialsType: String, Sendable { case basic = "password" case newsBlurBasic = "newsBlurBasic" case newsBlurSessionId = "newsBlurSessionId" @@ -24,7 +24,7 @@ public enum CredentialsType: String { case oauthRefreshToken = "oauthRefreshToken" } -public struct Credentials: Equatable { +public struct Credentials: Equatable, Sendable { public let type: CredentialsType public let username: String public let secret: String