Skip to content

Commit

Permalink
use identity operator instead of ObjectIdentifier for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Oct 10, 2024
1 parent 9acdf07 commit 3effe9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/IORing/IORing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/IORing/Submission.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 3effe9e

Please sign in to comment.