Skip to content

Commit de4cdb9

Browse files
committed
swift-format
1 parent 4fe73ff commit de4cdb9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sources/OpenAPILambda.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,12 @@ extension OpenAPILambda {
6666

6767
// on Swift 6.2, with approachable concurrency, the compiler considers
6868
// the `lambdaHandler` can not be sent to the `LambdaRuntime(body:)` directly
69-
// despite the fact `lambdaHandler` is not used after that
69+
// despite the fact `lambdaHandler` is not used after the call.
7070
// There are two workarounds:
7171
// - make `OpenAPILambda` conform to `Sendable`. But this would require users to ensure their implementations are also `Sendable`
7272
// - wrap the handler in a `UnsafeTransferBox`
7373
#if swift(>=6.2)
74-
fileprivate struct UnsafeTransferBox<Value>: @unchecked Sendable {
74+
private struct UnsafeTransferBox<Value>: @unchecked Sendable {
7575
let value: Value
76-
init(value: Value) {
77-
self.value = value
78-
}
7976
}
8077
#endif

0 commit comments

Comments
 (0)