Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IntegerBytesCollection conditionally Sendable #33

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/SwiftASN1/Basic ASN1 Types/ASN1Integer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ extension ASN1IntegerRepresentable where Self: FixedWidthInteger {
}

/// A big-endian `Collection` of bytes representing a fixed width integer.
public struct IntegerBytesCollection<Integer: FixedWidthInteger & Sendable> {
public struct IntegerBytesCollection<Integer: FixedWidthInteger> {
@usableFromInline var integer: Integer

/// Construct an ``IntegerBytesCollection`` representing the bytes of this integer.
Expand All @@ -142,7 +142,7 @@ public struct IntegerBytesCollection<Integer: FixedWidthInteger & Sendable> {

extension IntegerBytesCollection: Hashable { }

extension IntegerBytesCollection: Sendable { }
extension IntegerBytesCollection: Sendable where Integer: Sendable {}

extension IntegerBytesCollection: RandomAccessCollection {
public struct Index {
Expand Down