Skip to content

Commit f2ba6e3

Browse files
committed
fix: Sendable constraints
1 parent cd024af commit f2ba6e3

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/CSSKit/Errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extension ParseErrorKind: CustomStringConvertible where CustomError: CustomStrin
8080
}
8181

8282
/// Extensible parse errors that can be encountered by client parsing implementations.
83-
public struct ParseError<CustomError>: Error, Equatable where CustomError: Equatable {
83+
public struct ParseError<CustomError>: Error, Equatable where CustomError: Equatable & Sendable {
8484
/// Details of this error.
8585
public var kind: ParseErrorKind<CustomError>
8686

Sources/CSSKit/Rules/AtRuleParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ protocol AtRuleParsingDelegate {
1111
associatedtype AtRule
1212

1313
/// Error type for at-rule parsing failures.
14-
associatedtype AtRuleError: Equatable
14+
associatedtype AtRuleError: Equatable & Sendable
1515

1616
/// Parses the prelude of an at-rule with the given name.
1717
func parsePrelude(

Sources/CSSKit/Rules/DeclarationParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ protocol DeclarationParser {
88
associatedtype Declaration
99

1010
/// Error type for declaration parsing failures.
11-
associatedtype DeclError: Equatable
11+
associatedtype DeclError: Equatable & Sendable
1212

1313
/// Parses the value of a declaration with the given name.
1414
func parseValue(

Sources/CSSKit/Rules/QualifiedRuleParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ protocol QualifiedRuleParser {
1111
associatedtype QualifiedRule
1212

1313
/// The error type that is included in the ParseError value that can be returned.
14-
associatedtype QRError: Equatable
14+
associatedtype QRError: Equatable & Sendable
1515

1616
/// Parses the prelude of a qualified rule. For style rules, this is a Selector list.
1717
///

Sources/CSSKit/Rules/RuleParseError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file, You can obtain one at http://mozilla.org/MPL/2.0/
44

55
/// A rule parsing error with the associated input slice.
6-
struct RuleParseError<E: Equatable>: Error, Equatable, @unchecked Sendable {
6+
struct RuleParseError<E: Equatable & Sendable>: Error, Equatable, Sendable {
77
/// The underlying parse error.
88
let error: ParseError<E>
99

Sources/CSSKit/Values/Color.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ protocol ColorParser {
612612
/// The type that the parser will construct on a successful parse.
613613
associatedtype Output: ColorFactory
614614
/// A custom error type that can be returned from the parsing functions.
615-
associatedtype Error: Equatable
615+
associatedtype Error: Equatable & Sendable
616616

617617
/// Parses an `<angle>` or `<number>`, returning degrees.
618618
func parseAngleOrNumber(_ input: Parser) -> Result<AngleOrNumber, ParseError<Error>>

0 commit comments

Comments
 (0)