Skip to content

Commit 5ab0454

Browse files
committed
Fixup some import related warnings
This patch fixes up: - 1 File 'Foo.swift' is part of module 'module'; ignoring import warning - 70 "Instance method 'foo' cannot be used in an '@inlinable' function because 'module' was not imported by this file" warnings - 2 "Result of call 'foo' is unused" warnings
1 parent 158bed8 commit 5ab0454

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/SKSupport/LineTable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import LSPLogging
14+
import os
1415

1516
public struct LineTable: Hashable, Sendable {
1617
@usableFromInline

Sources/SwiftExtensions/PipeAsStringHandler.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14-
import SwiftExtensions
1514

1615
/// Gathers data from a stdout or stderr pipe. When it has accumulated a full line, calls the handler to handle the
1716
/// string.

Tests/SourceKitLSPTests/ExecuteCommandTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class ExecuteCommandTests: XCTestCase {
5858
return ApplyEditResponse(applied: true, failureReason: nil)
5959
}
6060

61-
try await testClient.send(request)
61+
let _ = try await testClient.send(request)
6262

6363
try await fulfillmentOfOrThrow([expectation])
6464

@@ -123,7 +123,7 @@ final class ExecuteCommandTests: XCTestCase {
123123
return ApplyEditResponse(applied: true, failureReason: nil)
124124
}
125125

126-
try await testClient.send(request)
126+
let _ = try await testClient.send(request)
127127

128128
try await fulfillmentOfOrThrow([expectation])
129129

0 commit comments

Comments
 (0)