Skip to content

Commit 1885bd4

Browse files
chore: Remove warnings
1 parent fb9b21f commit 1885bd4

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Sources/Graphiti/Field/Field/Field.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,4 @@ public extension Field where Arguments == NoArguments {
151151
}
152152

153153
// We must conform KeyPath to unchecked sendable to allow keypath-based resolvers.
154-
// Despite the warning, we cannot add `@retroactive` and keep Swift 5 support.
155-
// Remove when support transitions to Swift 6.
156-
extension KeyPath: @unchecked Sendable {}
154+
extension KeyPath: @retroactive @unchecked Sendable {}

Tests/GraphitiTests/FederationTests/FederationTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct FederationTests {
1212
.use(partials: [ProductSchema()])
1313
.setFederatedSDL(to: sdl)
1414
.build()
15-
api = try ProductAPI(resolver: ProductResolver(sdl: sdl), schema: schema)
15+
api = ProductAPI(resolver: ProductResolver(sdl: sdl), schema: schema)
1616
}
1717

1818
// Test Queries from https://github.com/apollographql/apollo-federation-subgraph-compatibility/blob/main/COMPATIBILITY.md
@@ -238,7 +238,7 @@ extension FederationTests {
238238
else {
239239
throw FederationTestsError.couldNotLoadFile
240240
}
241-
return try String(contentsOf: url)
241+
return try String(contentsOf: url, encoding: .utf8)
242242
}
243243

244244
static func query(_ name: String) throws -> String {
@@ -251,7 +251,7 @@ extension FederationTests {
251251
else {
252252
throw FederationTestsError.couldNotLoadFile
253253
}
254-
return try String(contentsOf: url)
254+
return try String(contentsOf: url, encoding: .utf8)
255255
}
256256

257257
func execute(request: String, variables: [String: Map] = [:]) async throws -> GraphQLResult {

0 commit comments

Comments
 (0)