You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix visibility on import triggering a compile warning
Previously, building sourcekit-lsp would produce the following
warning:
$ swift build
Building for debugging...
/Users/wilfred/src/sourcekit-lsp/Sources/SKLogging/CustomLogStringConvertible.swift:13:9: warning: package import of 'Foundation' was not used in package declarations
11 | //===----------------------------------------------------------------------===//
12 |
13 | package import Foundation
| `- warning: package import of 'Foundation' was not used in package declarations
Remove the visibility modifier, so this is effectively `private import
Foundation` (as of Swift 6) and no warning is produced.
0 commit comments