Skip to content

Remove Swift 5.5 Dockerfile #34

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

Merged
merged 3 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions Sources/RawStructuredFieldValues/ComponentTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/// `ItemOrInnerList` represents the values in a structured header dictionary, or the
/// entries in a structured header list.
public enum ItemOrInnerList: SHSendable {
public enum ItemOrInnerList: Sendable {
case item(Item)
case innerList(InnerList)
}
Expand All @@ -32,7 +32,7 @@ extension ItemOrInnerList: Hashable {}

/// `BareItem` is a representation of the base data types at the bottom of a structured
/// header field. These types are not parameterised: they are raw data.
public enum BareItem: SHSendable {
public enum BareItem: Sendable {
/// A boolean item.
case bool(Bool)

Expand Down Expand Up @@ -87,7 +87,7 @@ extension BareItem: Hashable {}

/// `Item` represents a structured header field item: a combination of a `bareItem`
/// and some parameters.
public struct Item: SHSendable {
public struct Item: Sendable {
/// The `BareItem` that this `Item` contains.
public var bareItem: BareItem

Expand All @@ -106,7 +106,7 @@ extension Item: Hashable {}

/// A `BareInnerList` represents the items contained within an ``InnerList``, without
/// the associated parameters.
public struct BareInnerList: Hashable, SHSendable {
public struct BareInnerList: Hashable, Sendable {
private var items: [Item]

public init() {
Expand Down Expand Up @@ -179,7 +179,7 @@ extension BareInnerList.Index: Comparable {
// MARK: - InnerList

/// An `InnerList` is a list of items, with some associated parameters.
public struct InnerList: Hashable, SHSendable {
public struct InnerList: Hashable, Sendable {
/// The items contained within this inner list.
public var bareInnerList: BareInnerList

Expand Down
2 changes: 1 addition & 1 deletion Sources/RawStructuredFieldValues/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// MARK: - StructuredHeaderError

/// Errors that may be encountered when working with structured headers.
public struct StructuredHeaderError: Error, SHSendable {
public struct StructuredHeaderError: Error, Sendable {
private enum _BaseError: Hashable {
case invalidTrailingBytes
case invalidInnerList
Expand Down
2 changes: 1 addition & 1 deletion Sources/RawStructuredFieldValues/FieldParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public struct StructuredFieldValueParser<BaseData: RandomAccessCollection> where
}
}

extension StructuredFieldValueParser: SHSendable where BaseData: SHSendable, BaseData.SubSequence: SHSendable {}
extension StructuredFieldValueParser: Sendable where BaseData: Sendable, BaseData.SubSequence: Sendable {}

extension StructuredFieldValueParser {
// Helper typealiases to avoid the explosion of generic parameters
Expand Down
2 changes: 1 addition & 1 deletion Sources/RawStructuredFieldValues/FieldSerializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
private let validIntegerRange = Int64(-999_999_999_999_999) ... Int64(999_999_999_999_999)

/// A `StructuredFieldValueSerializer` is the basic parsing object for structured header field values.
public struct StructuredFieldValueSerializer: SHSendable {
public struct StructuredFieldValueSerializer: Sendable {
private var data: [UInt8]

public init() {
Expand Down
6 changes: 3 additions & 3 deletions Sources/RawStructuredFieldValues/OrderedMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ extension OrderedMap {
}
}

extension OrderedMap: SHSendable where Key: SHSendable, Value: SHSendable {}
extension OrderedMap: Sendable where Key: Sendable, Value: Sendable {}

extension OrderedMap.Entry: SHSendable where Key: SHSendable, Value: SHSendable {}
extension OrderedMap.Entry: Sendable where Key: Sendable, Value: Sendable {}

// MARK: - Collection conformances

extension OrderedMap: RandomAccessCollection, MutableCollection {
public struct Index: SHSendable {
public struct Index: Sendable {
fileprivate var baseIndex: Array<(Key, Value)>.Index

fileprivate init(_ baseIndex: Array<(Key, Value)>.Index) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/RawStructuredFieldValues/PseudoDecimal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import Glibc
/// is 999,999,999,999,999. The exponent ranges from -3 to 0. Additionally, there may be no more than 12 decimal digits before
/// the decimal place, so while the maximum value of the significand is 999,999,999,999,999, that is only acceptable if the
/// exponent is -3.
public struct PseudoDecimal: Hashable, SHSendable {
public struct PseudoDecimal: Hashable, Sendable {
private var _mantissa: Int64

private var _exponent: Int8
Expand Down
19 changes: 0 additions & 19 deletions Sources/RawStructuredFieldValues/Sendable.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import RawStructuredFieldValues

/// A `StructuredFieldValueDecoder` allows decoding `Decodable` objects from a HTTP
/// structured header field.
public struct StructuredFieldValueDecoder: SHSendable {
public struct StructuredFieldValueDecoder: Sendable {
/// A strategy that should be used to map coding keys to wire format keys.
public var keyDecodingStrategy: KeyDecodingStrategy?

Expand All @@ -25,7 +25,7 @@ public struct StructuredFieldValueDecoder: SHSendable {

extension StructuredFieldValueDecoder {
/// A strategy that should be used to map coding keys to wire format keys.
public struct KeyDecodingStrategy: Hashable, SHSendable {
public struct KeyDecodingStrategy: Hashable, Sendable {
fileprivate enum Base: Hashable {
case lowercase
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import RawStructuredFieldValues

/// A `StructuredFieldValueEncoder` allows encoding `Encodable` objects to the format of a HTTP
/// structured header field.
public struct StructuredFieldValueEncoder: SHSendable {
public struct StructuredFieldValueEncoder: Sendable {
public var keyEncodingStrategy: KeyEncodingStrategy?

public init() {}
}

extension StructuredFieldValueEncoder {
/// A strategy that should be used to map coding keys to wire format keys.
public struct KeyEncodingStrategy: Hashable, SHSendable {
public struct KeyEncodingStrategy: Hashable, Sendable {
fileprivate enum Base: Hashable {
case lowercase
}
Expand Down
23 changes: 0 additions & 23 deletions docker/docker-compose.2004.55.yaml

This file was deleted.