From ee61ffdcd245be7cf31c83d78d014ad43e0f2616 Mon Sep 17 00:00:00 2001 From: David Nadoba Date: Fri, 30 Jun 2023 11:13:34 +0100 Subject: [PATCH] Make `IntegerBytesCollection` conditionally `Sendable` --- Sources/SwiftASN1/Basic ASN1 Types/ASN1Integer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftASN1/Basic ASN1 Types/ASN1Integer.swift b/Sources/SwiftASN1/Basic ASN1 Types/ASN1Integer.swift index 2392ffa..5379683 100644 --- a/Sources/SwiftASN1/Basic ASN1 Types/ASN1Integer.swift +++ b/Sources/SwiftASN1/Basic ASN1 Types/ASN1Integer.swift @@ -130,7 +130,7 @@ extension ASN1IntegerRepresentable where Self: FixedWidthInteger { } /// A big-endian `Collection` of bytes representing a fixed width integer. -public struct IntegerBytesCollection { +public struct IntegerBytesCollection { @usableFromInline var integer: Integer /// Construct an ``IntegerBytesCollection`` representing the bytes of this integer. @@ -142,7 +142,7 @@ public struct IntegerBytesCollection { extension IntegerBytesCollection: Hashable { } -extension IntegerBytesCollection: Sendable { } +extension IntegerBytesCollection: Sendable where Integer: Sendable {} extension IntegerBytesCollection: RandomAccessCollection { public struct Index {