diff --git a/Sources/IORing/IORing.swift b/Sources/IORing/IORing.swift index e803739..9d4fe90 100644 --- a/Sources/IORing/IORing.swift +++ b/Sources/IORing/IORing.swift @@ -949,7 +949,7 @@ public extension IORing { extension IORing: Equatable { public nonisolated static func == (lhs: IORing, rhs: IORing) -> Bool { - ObjectIdentifier(lhs) == ObjectIdentifier(rhs) + lhs === rhs } } diff --git a/Sources/IORing/Submission.swift b/Sources/IORing/Submission.swift index cda618c..f720eb0 100644 --- a/Sources/IORing/Submission.swift +++ b/Sources/IORing/Submission.swift @@ -537,7 +537,7 @@ struct AsyncCancelFlags: OptionSet { extension Submission: Equatable { public nonisolated static func == (lhs: Submission, rhs: Submission) -> Bool { - ObjectIdentifier(lhs) == ObjectIdentifier(rhs) + lhs === rhs } }