From 3bd9004b9d685ed6b629760fc84903e48efec806 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Wed, 25 Oct 2023 16:07:40 +0100 Subject: [PATCH] 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. --- Tests/NIOHPACKTests/HPACKIntegrationTests.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Tests/NIOHPACKTests/HPACKIntegrationTests.swift b/Tests/NIOHPACKTests/HPACKIntegrationTests.swift index dbd951ca..84b410f0 100644 --- a/Tests/NIOHPACKTests/HPACKIntegrationTests.swift +++ b/Tests/NIOHPACKTests/HPACKIntegrationTests.swift @@ -335,15 +335,3 @@ fileprivate func encodeHex(data: ByteBuffer) -> String { } return result } - -extension ByteBufferView : CustomDebugStringConvertible { - public var debugDescription: String { - var desc = "\(self.count) bytes: [" - for byte in self { - let hexByte = String(byte, radix: 16) - desc += " \(hexByte.count == 1 ? "0" : "")\(hexByte)" - } - desc += " ]" - return desc - } -}