Skip to content

Commit 9e87ba6

Browse files
committed
Default equatable conformance
1 parent 174da05 commit 9e87ba6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/ComposableArchitecturePattern/Server+API.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ extension Sequence where Element == Codable.Type {
3535
}
3636

3737
extension ServerAPI {
38+
static func ==(lhs: Self, rhs: Self) -> Bool {
39+
lhs.id == rhs.id
40+
}
41+
3842
func isEqual(to api: any ServerAPI) -> Bool {
3943
let returnObjectsEquatable = {
4044
if let supportedReturnObjects, let otherSupportedReturnObjects = api.supportedReturnObjects {

0 commit comments

Comments
 (0)