Skip to content

Commit e8d79e9

Browse files
authored
Fix warnings (#6496)
1 parent 73d1ddc commit e8d79e9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Sources/Basics/Observability.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ extension ObservabilityMetadata {
564564

565565
// MARK: - Compatibility with TSC Diagnostics APIs
566566

567+
@available(*, deprecated, message: "temporary for transition TSCBasic.Diagnostic -> SwiftDriver.Diagnostic")
567568
extension ObservabilityScope {
568569
public func makeDiagnosticsHandler() -> (TSCBasic.Diagnostic) -> Void {
569570
{ Diagnostic($0).map { self.diagnosticsHandler.handleDiagnostic(scope: self, diagnostic: $0) } }

Sources/PackageRegistry/RegistryClient.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,17 @@ public final class RegistryClient: Cancellable {
355355
return nil
356356
}
357357
let configuration = self.configuration.signing(for: package, registry: registry)
358-
return try? tsc_await { SignatureValidation.extractSigningEntity(
358+
return try? tsc_await { completion in
359+
let wrappedCompletion: @Sendable (Result<SigningEntity?, Error>) -> Void = {
360+
completion($0)
361+
}
362+
363+
SignatureValidation.extractSigningEntity(
359364
signature: [UInt8](signatureData),
360365
signatureFormat: signatureFormat,
361366
configuration: configuration,
362367
fileSystem: fileSystem,
363-
completion: $0
368+
completion: wrappedCompletion
364369
) }
365370
}
366371
)

Tests/CommandsTests/BuildToolTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ final class BuildToolTests: CommandsTestCase {
274274
}
275275

276276
func testBuildCompleteMessage() throws {
277-
throw XCTSkip("This test fails to match the 'Compiling' regex; rdar://101815761")
277+
try XCTSkipIf(true, "This test fails to match the 'Compiling' regex; rdar://101815761")
278278

279279
try fixture(name: "DependencyResolution/Internal/Simple") { fixturePath in
280280
do {

0 commit comments

Comments
 (0)