Skip to content

Commit

Permalink
Remove retroactive CustomDebugStringConvertible conformance in tests (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
FranzBusch authored Oct 25, 2023
1 parent 462ded7 commit 3bd9004
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Tests/NIOHPACKTests/HPACKIntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 3bd9004

Please sign in to comment.