Skip to content

Commit 0707b3a

Browse files
authored
Merge pull request #4 from rcarver/concurrent
enable strict concurrency and fix warnings
2 parents d25b70e + f7467ae commit 0707b3a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ let package = Package(
1919
],
2020
targets: [
2121
.target(
22-
name: "ElasticsearchQueryBuilder"
22+
name: "ElasticsearchQueryBuilder",
23+
swiftSettings: [
24+
.enableExperimentalFeature("StrictConcurrency")
25+
]
2326
),
2427
.testTarget(
2528
name: "ElasticsearchQueryBuilderTests",

Sources/ElasticsearchQueryBuilder/Components.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ extension esb {
406406
}
407407
}
408408

409-
public struct BoostModeType: RawRepresentable, Equatable {
409+
public struct BoostModeType: RawRepresentable, Equatable, Sendable {
410410
public var rawValue: String
411411
public init(rawValue: String) {
412412
self.rawValue = rawValue
@@ -419,7 +419,7 @@ public struct BoostModeType: RawRepresentable, Equatable {
419419
public static let min = Self(rawValue: "min")
420420
}
421421

422-
public struct ScoreModeType: RawRepresentable, Equatable {
422+
public struct ScoreModeType: RawRepresentable, Equatable, Sendable {
423423
public var rawValue: String
424424
public init(rawValue: String) {
425425
self.rawValue = rawValue

0 commit comments

Comments
 (0)