Skip to content

Commit 194227f

Browse files
committed
Fix Metadata's description for prettier printing
1 parent 968f4dc commit 194227f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/GRPCCore/Metadata.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,15 +494,15 @@ extension Metadata.Value: ExpressibleByArrayLiteral {
494494

495495
extension Metadata: CustomStringConvertible {
496496
public var description: String {
497-
String(describing: self.map({ ($0.key, $0.value) }))
497+
String(describing: self.map({ ($0.key.description, $0.value.description) }))
498498
}
499499
}
500500

501501
extension Metadata.Value: CustomStringConvertible {
502502
public var description: String {
503503
switch self {
504504
case .string(let stringValue):
505-
return String(describing: stringValue)
505+
return stringValue
506506
case .binary(let binaryValue):
507507
return String(describing: binaryValue)
508508
}

0 commit comments

Comments
 (0)