From 4ac2eb7e6157887c9f59dc5ccc5978d51546be6d Mon Sep 17 00:00:00 2001 From: Tom Lokhorst Date: Mon, 7 Oct 2024 19:30:31 +0200 Subject: [PATCH] Add conformance to Sendable for generated _R struct --- Sources/rswift/RswiftCore.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/rswift/RswiftCore.swift b/Sources/rswift/RswiftCore.swift index 33e8f0c2..1e4f8a4c 100644 --- a/Sources/rswift/RswiftCore.swift +++ b/Sources/rswift/RswiftCore.swift @@ -201,7 +201,7 @@ public struct RswiftCore { valueCodeString: validateLines ) - var s = Struct(name: structName, additionalModuleReferences: [.rswiftResources]) { + var s = Struct(name: structName, protocols: [.init(module: .host, rawName: "Sendable")], additionalModuleReferences: [.rswiftResources]) { Init.bundle if generators.contains(.project), !projectStruct.isEmpty {