Skip to content

Commit f12b0d4

Browse files
committed
Drop Snapshotting Diffable @unchecked Sendable retroactive conformances
1 parent 6d80cac commit f12b0d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/AppTests/Helpers/Snapshotting+html.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ import Plot
1818
import SnapshotTesting
1919
import Dependencies
2020

21+
2122
extension Snapshotting where Value == String, Format == String {
22-
public static let html = Snapshotting(pathExtension: "html", diffing: .lines)
23+
public static var html: Snapshotting<String, String> {
24+
Snapshotting(pathExtension: "html", diffing: .lines)
25+
}
2326
}
2427

28+
2529
extension Snapshotting where Value == () -> HTML, Format == String {
2630
public static var html: Snapshotting {
2731
Snapshotting<String, String>.init(pathExtension: "html", diffing: .lines).pullback { node in
@@ -34,15 +38,11 @@ extension Snapshotting where Value == () -> HTML, Format == String {
3438
}
3539
}
3640

41+
3742
extension Snapshotting where Value == () -> Node<HTML.BodyContext>, Format == String {
3843
public static var html: Snapshotting {
3944
Snapshotting<() -> HTML, String>.html.pullback { node in
4045
{ HTML(.body(node())) }
4146
}
4247
}
4348
}
44-
45-
46-
#warning("drop this")
47-
extension Snapshotting: @unchecked Swift.Sendable {}
48-
extension Diffing: @unchecked Swift.Sendable {}

0 commit comments

Comments
 (0)