Skip to content

Commit

Permalink
Make NMBMatcher unchecked sendable
Browse files Browse the repository at this point in the history
There are 2 subclasses which are also sendable/safe to use. And no one else can make subclasses outside of Nimble, so this is tolerable
  • Loading branch information
younata committed Oct 14, 2024
1 parent b504403 commit 599568b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Nimble/Matchers/Matcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public typealias MatcherBlock = @Sendable (_ actualExpression: Expression<NSObje
@available(*, deprecated, renamed: "MatcherBlock")
public typealias PredicateBlock = MatcherBlock

public class NMBMatcher: NSObject {
public class NMBMatcher: NSObject, @unchecked Sendable {
private let matcher: MatcherBlock

public init(matcher: @escaping MatcherBlock) {
Expand Down

0 comments on commit 599568b

Please sign in to comment.