Skip to content

Commit a918a38

Browse files
authored
Fix sendable warnings. (#117)
1 parent 2a7c711 commit a918a38

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

[email protected]

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// swift-tools-version:5.9
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "swift-custom-dump",
7+
platforms: [
8+
.iOS(.v13),
9+
.macOS(.v10_15),
10+
.tvOS(.v13),
11+
.watchOS(.v6),
12+
],
13+
products: [
14+
.library(
15+
name: "CustomDump",
16+
targets: ["CustomDump"]
17+
)
18+
],
19+
dependencies: [
20+
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.0.0")
21+
],
22+
targets: [
23+
.target(
24+
name: "CustomDump",
25+
dependencies: [
26+
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay")
27+
],
28+
swiftSettings: [
29+
.enableExperimentalFeature("StrictConcurrency")
30+
]
31+
),
32+
.testTarget(
33+
name: "CustomDumpTests",
34+
dependencies: [
35+
"CustomDump"
36+
]
37+
),
38+
]
39+
)

Sources/CustomDump/Diff.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ public func diff<T>(_ lhs: T, _ rhs: T, format: DiffFormat = .default) -> String
753753
///
754754
/// This type comes with two pre-configured formats that you will probably want to use for most
755755
/// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
756-
public struct DiffFormat {
756+
public struct DiffFormat: Sendable {
757757
/// A string prepended to lines that only appear in the string representation of the first value,
758758
/// e.g. a "removal."
759759
public var first: String

0 commit comments

Comments
 (0)