Skip to content

Commit d69661b

Browse files
committed
Re-enable Swift 5.8 support
1 parent 3ca1752 commit d69661b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.9
1+
// swift-tools-version:5.8
22
import PackageDescription
33

44

Sources/CLTLogger.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,11 @@ private extension CLTLogger {
434434

435435
func prettyMetadataValue(_ v: Logger.MetadataValue) -> String {
436436
/* We return basically v.description, but dictionary keys are sorted. */
437-
return switch v {
438-
case .string(let str): str.processForLogging(escapingMode: .escapeScalars(asASCII: true, octothorpLevel: nil, showQuotes: true), newLineProcessing: .escape).string
439-
case .array(let array): #"["# + array.map{ prettyMetadataValue($0) }.joined(separator: ", ") + #"]"#
440-
case .dictionary(let dict): #"["# + flatMetadataArray(dict).joined(separator: ", ") + #"]"#
441-
case .stringConvertible(let c): prettyMetadataValue(.string(c.description))
437+
switch v {
438+
case .string(let str): return str.processForLogging(escapingMode: .escapeScalars(asASCII: true, octothorpLevel: nil, showQuotes: true), newLineProcessing: .escape).string
439+
case .array(let array): return #"["# + array.map{ prettyMetadataValue($0) }.joined(separator: ", ") + #"]"#
440+
case .dictionary(let dict): return #"["# + flatMetadataArray(dict).joined(separator: ", ") + #"]"#
441+
case .stringConvertible(let c): return prettyMetadataValue(.string(c.description))
442442
}
443443
}
444444

0 commit comments

Comments
 (0)