Skip to content

Commit 6bcf442

Browse files
committed
Fix warning
1 parent fcfdadf commit 6bcf442

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/RawStructuredFieldValues/OrderedMap.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/// Note that this preserves _original_ insertion order: if you overwrite a key's value, the
2424
/// key does not move to "last". This is a specific requirement for Structured Headers and may
2525
/// harm the generality of this implementation.
26-
public struct OrderedMap<Key, Value>: SHSendable where Key: Hashable {
26+
public struct OrderedMap<Key, Value> where Key: Hashable {
2727
private var backing: [Entry]
2828

2929
public init() {
@@ -67,6 +67,10 @@ extension OrderedMap {
6767
}
6868
}
6969

70+
extension OrderedMap: SHSendable where Key: SHSendable, Value: SHSendable {}
71+
72+
extension OrderedMap.Entry: SHSendable where Key: SHSendable, Value: SHSendable {}
73+
7074
// MARK: - Collection conformances
7175

7276
extension OrderedMap: RandomAccessCollection, MutableCollection {

0 commit comments

Comments
 (0)