Skip to content

Commit

Permalink
Fix compile warnings for Swift 6 language mode (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ackturtle authored Jun 25, 2024
1 parent 9cb4860 commit db86ac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tests/LoggingTests/LoggingTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class LoggingTest: XCTestCase {
"lazy": .stringConvertible(LazyMetadataBox { "rendered-at-first-use" })])
}

private func dontEvaluateThisString(file: StaticString = #file, line: UInt = #line) -> Logger.Message {
private func dontEvaluateThisString(file: StaticString = #filePath, line: UInt = #line) -> Logger.Message {
XCTFail("should not have been evaluated", file: file, line: line)
return "should not have been evaluated"
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/LoggingTests/TestLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ extension History {
message: String,
metadata: Logger.Metadata? = nil,
source: String? = nil,
file: StaticString = #file,
file: StaticString = #filePath,
fileID: String = #fileID,
line: UInt = #line) {
let source = source ?? Logger.currentModule(fileID: "\(fileID)")
Expand All @@ -232,7 +232,7 @@ extension History {
message: String,
metadata: Logger.Metadata? = nil,
source: String? = nil,
file: StaticString = #file,
file: StaticString = #filePath,
fileID: String = #file,
line: UInt = #line) {
let source = source ?? Logger.currentModule(fileID: "\(fileID)")
Expand Down

0 comments on commit db86ac7

Please sign in to comment.