Skip to content
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
1 change: 1 addition & 0 deletions Sources/XMLCoder/Auxiliaries/Attribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ extension Attribute: Codable where Value: Codable {

extension Attribute: Equatable where Value: Equatable {}
extension Attribute: Hashable where Value: Hashable {}
extension Attribute: Sendable where Value: Sendable {}

extension Attribute: ExpressibleByIntegerLiteral where Value: ExpressibleByIntegerLiteral {
public typealias IntegerLiteralType = Value.IntegerLiteralType
Expand Down
1 change: 1 addition & 0 deletions Sources/XMLCoder/Auxiliaries/Element.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ extension Element: Codable where Value: Codable {

extension Element: Equatable where Value: Equatable {}
extension Element: Hashable where Value: Hashable {}
extension Element: Sendable where Value: Sendable {}
1 change: 1 addition & 0 deletions Sources/XMLCoder/Auxiliaries/ElementAndAttribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ extension ElementAndAttribute: Codable where Value: Codable {

extension ElementAndAttribute: Equatable where Value: Equatable {}
extension ElementAndAttribute: Hashable where Value: Hashable {}
extension ElementAndAttribute: Sendable where Value: Sendable {}
4 changes: 2 additions & 2 deletions Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation

struct XMLCoderElement: Equatable {
struct Attribute: Equatable {
struct XMLCoderElement: Equatable, Sendable {
struct Attribute: Equatable, Sendable {
let key: String
let value: String
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/XMLCoder/Auxiliaries/XMLHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
/// Type that allows overriding XML header during encoding. Pass a value of this type to the `encode`
/// function of `XMLEncoder` to specify the exact value of the header you'd like to see in the encoded
/// data.
public struct XMLHeader {
public struct XMLHeader: Sendable {
/// The XML standard that the produced document conforms to.
public let version: Double?

Expand Down
2 changes: 1 addition & 1 deletion Sources/XMLCoder/Auxiliaries/XMLKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

/// Shared Key Types
struct XMLKey: CodingKey {
struct XMLKey: CodingKey, Sendable {
public let stringValue: String
public let intValue: Int?

Expand Down
Loading