Skip to content

Commit 4ac2eb7

Browse files
committed
Add conformance to Sendable for generated _R struct
1 parent 24b1e15 commit 4ac2eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/rswift/RswiftCore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public struct RswiftCore {
201201
valueCodeString: validateLines
202202
)
203203

204-
var s = Struct(name: structName, additionalModuleReferences: [.rswiftResources]) {
204+
var s = Struct(name: structName, protocols: [.init(module: .host, rawName: "Sendable")], additionalModuleReferences: [.rswiftResources]) {
205205
Init.bundle
206206

207207
if generators.contains(.project), !projectStruct.isEmpty {

0 commit comments

Comments
 (0)