Skip to content

Commit

Permalink
Fix sendable warnings. (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored Apr 17, 2024
1 parent 2a7c711 commit a918a38
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// swift-tools-version:5.9

import PackageDescription

let package = Package(
name: "swift-custom-dump",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(
name: "CustomDump",
targets: ["CustomDump"]
)
],
dependencies: [
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.0.0")
],
targets: [
.target(
name: "CustomDump",
dependencies: [
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay")
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(
name: "CustomDumpTests",
dependencies: [
"CustomDump"
]
),
]
)
2 changes: 1 addition & 1 deletion Sources/CustomDump/Diff.swift
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ public func diff<T>(_ lhs: T, _ rhs: T, format: DiffFormat = .default) -> String
///
/// This type comes with two pre-configured formats that you will probably want to use for most
/// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
public struct DiffFormat {
public struct DiffFormat: Sendable {
/// A string prepended to lines that only appear in the string representation of the first value,
/// e.g. a "removal."
public var first: String
Expand Down

0 comments on commit a918a38

Please sign in to comment.