Skip to content

Commit 2c840cf

Browse files
authored
Remove invalid conformances from State.Shared{,Reader} (#123)
We have conditional conformances on `Equatable` and `Identifiable` that shouldn't be there.
1 parent 447278e commit 2c840cf

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Sources/Sharing/SwiftUIStateSharing.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -257,30 +257,6 @@
257257
}
258258
}
259259

260-
extension State.Shared: Equatable where Value: Equatable {
261-
public static func == (lhs: Self, rhs: Self) -> Bool {
262-
lhs.shared == rhs.shared
263-
}
264-
}
265-
266-
extension State.Shared: Identifiable where Value: Identifiable {
267-
public var id: Value.ID {
268-
shared.id
269-
}
270-
}
271-
272-
extension State.SharedReader: Equatable where Value: Equatable {
273-
public static func == (lhs: Self, rhs: Self) -> Bool {
274-
lhs.shared == rhs.shared
275-
}
276-
}
277-
278-
extension State.SharedReader: Identifiable where Value: Identifiable {
279-
public var id: Value.ID {
280-
shared.id
281-
}
282-
}
283-
284260
#if compiler(>=6)
285261
extension State.Shared: Sendable where Value: Sendable {}
286262

0 commit comments

Comments
 (0)