Skip to content

Commit 5eb6cd8

Browse files
committed
Enable explicit sendable checks
1 parent e3c41e2 commit 5eb6cd8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ let extraSettings: [SwiftSetting] = [
1010
.enableUpcomingFeature("InferIsolatedConformances"),
1111
.enableUpcomingFeature("ExistentialAny"),
1212
.enableUpcomingFeature("MemberImportVisibility"),
13-
.enableUpcomingFeature("InternalImportsByDefault")
13+
.enableUpcomingFeature("InternalImportsByDefault"),
14+
.unsafeFlags(["-Xfrontend", "-require-explicit-sendable", "-warnings-as-errors"])
1415
]
1516

1617
let package = Package(

Sources/Middleware/MiddlewareBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// }
2222
/// ```
2323
@resultBuilder
24-
public struct MiddlewareChainBuilder {
24+
public struct MiddlewareChainBuilder: Sendable {
2525
/// Builds a middleware chain from a single middleware component.
2626
///
2727
/// This is the base case for the result builder pattern, handling a single middleware.

0 commit comments

Comments
 (0)