We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177a763 commit 212bfd0Copy full SHA for 212bfd0
Sources/PlayingCard/PlayingCard.swift
@@ -8,7 +8,7 @@
8
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
9
*/
10
11
-public struct PlayingCard {
+public struct PlayingCard: Equatable {
12
public let rank: Rank
13
public let suit: Suit
14
@@ -18,14 +18,6 @@ public struct PlayingCard {
18
}
19
20
21
-// MARK: - Equatable
22
-
23
-extension PlayingCard: Equatable {
24
- public static func ==(lhs: PlayingCard, rhs: PlayingCard) -> Bool {
25
- return lhs.rank == rhs.rank && lhs.suit == rhs.suit
26
- }
27
-}
28
29
// MARK: - Comparable
30
31
extension PlayingCard: Comparable {
0 commit comments