File tree Expand file tree Collapse file tree 6 files changed +7
-4
lines changed
Sources/XMLCoder/Auxiliaries Expand file tree Collapse file tree 6 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ extension Attribute: Codable where Value: Codable {
4040
4141extension Attribute : Equatable where Value: Equatable { }
4242extension Attribute : Hashable where Value: Hashable { }
43+ extension Attribute : Sendable where Value: Sendable { }
4344
4445extension Attribute : ExpressibleByIntegerLiteral where Value: ExpressibleByIntegerLiteral {
4546 public typealias IntegerLiteralType = Value . IntegerLiteralType
Original file line number Diff line number Diff line change @@ -40,3 +40,4 @@ extension Element: Codable where Value: Codable {
4040
4141extension Element : Equatable where Value: Equatable { }
4242extension Element : Hashable where Value: Hashable { }
43+ extension Element : Sendable where Value: Sendable { }
Original file line number Diff line number Diff line change @@ -41,3 +41,4 @@ extension ElementAndAttribute: Codable where Value: Codable {
4141
4242extension ElementAndAttribute : Equatable where Value: Equatable { }
4343extension ElementAndAttribute : Hashable where Value: Hashable { }
44+ extension ElementAndAttribute : Sendable where Value: Sendable { }
Original file line number Diff line number Diff line change 88
99import Foundation
1010
11- struct XMLCoderElement : Equatable {
12- struct Attribute : Equatable {
11+ struct XMLCoderElement : Equatable , Sendable {
12+ struct Attribute : Equatable , Sendable {
1313 let key : String
1414 let value : String
1515 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Foundation
1111/// Type that allows overriding XML header during encoding. Pass a value of this type to the `encode`
1212/// function of `XMLEncoder` to specify the exact value of the header you'd like to see in the encoded
1313/// data.
14- public struct XMLHeader {
14+ public struct XMLHeader : Sendable {
1515 /// The XML standard that the produced document conforms to.
1616 public let version : Double ?
1717
Original file line number Diff line number Diff line change 99import Foundation
1010
1111/// Shared Key Types
12- struct XMLKey : CodingKey {
12+ struct XMLKey : CodingKey , Sendable {
1313 public let stringValue : String
1414 public let intValue : Int ?
1515
You can’t perform that action at this time.
0 commit comments