Skip to content

Commit c3a56a0

Browse files
authored
Merge pull request #193 from CodaFi/members-only
[NFC] Use Static Member == for Equatable Requirement
2 parents 5c425b6 + 2a32737 commit c3a56a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/TSCBasic/KeyedPair.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public struct KeyedPair<T, K: Hashable>: Hashable {
4545
public func hash(into hasher: inout Hasher) {
4646
hasher.combine(key)
4747
}
48-
}
49-
public func ==<T, K>(lhs: KeyedPair<T, K>, rhs: KeyedPair<T, K>) -> Bool {
50-
return lhs.key == rhs.key
48+
49+
public static func ==(lhs: KeyedPair<T, K>, rhs: KeyedPair<T, K>) -> Bool {
50+
return lhs.key == rhs.key
51+
}
5152
}

0 commit comments

Comments
 (0)