From 5e2e341a8e2452cd8e73d78f490e02f82205312c Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Wed, 25 Oct 2023 15:57:43 +0100 Subject: [PATCH] Remove retroactive `CustomDebugStringConvertible` conformance in tests # 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 - } -}