Skip to content

Commit 3bd9004

Browse files
authored
Remove retroactive CustomDebugStringConvertible conformance in tests (#425)
# Motivation We had a retroactive `CustomDebugStringConvertible` conformance to `ByteBufferView` in one of our tests harnesses which caused compiler errors in the latest nightlies. # Modification This PR removes the retroactive conformance. # Result No more compiler errors.
1 parent 462ded7 commit 3bd9004

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Tests/NIOHPACKTests/HPACKIntegrationTests.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,3 @@ fileprivate func encodeHex(data: ByteBuffer) -> String {
335335
}
336336
return result
337337
}
338-
339-
extension ByteBufferView : CustomDebugStringConvertible {
340-
public var debugDescription: String {
341-
var desc = "\(self.count) bytes: ["
342-
for byte in self {
343-
let hexByte = String(byte, radix: 16)
344-
desc += " \(hexByte.count == 1 ? "0" : "")\(hexByte)"
345-
}
346-
desc += " ]"
347-
return desc
348-
}
349-
}

0 commit comments

Comments
 (0)