Skip to content

Commit 51d83cf

Browse files
committed
Add some Sendable annotations
1 parent 62cc957 commit 51d83cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/App/Controllers/API/API+PackageController+GetRoute+Model.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ extension API.PackageController.GetRoute.Model {
319319
var latest: Version?
320320
}
321321

322-
struct BuildInfo<T: Codable & Equatable>: Codable, Equatable {
322+
struct BuildInfo<T: Codable & Equatable & Sendable>: Codable, Equatable, Sendable {
323323
var stable: NamedBuildResults<T>?
324324
var beta: NamedBuildResults<T>?
325325
var latest: NamedBuildResults<T>?
@@ -335,7 +335,7 @@ extension API.PackageController.GetRoute.Model {
335335
}
336336
}
337337

338-
struct NamedBuildResults<T: Codable & Equatable>: Codable, Equatable {
338+
struct NamedBuildResults<T: Codable & Equatable & Sendable>: Codable, Equatable, Sendable {
339339
var referenceName: String
340340
var results: T
341341
}

Sources/App/Views/PackageController/PackageShow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ enum PackageShow {
3636
}
3737
}
3838

39-
struct BuildStatusRow<T: Codable & Equatable>: Codable, Equatable {
39+
struct BuildStatusRow<T: Codable & Equatable & Sendable>: Codable, Equatable, Sendable {
4040
var references: [Reference]
4141
var results: T
4242

0 commit comments

Comments
 (0)