From 948ccdff3653e8bf9bd96236e58ab57fd4662aea Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Wed, 12 Nov 2025 16:47:11 +0100 Subject: [PATCH] Remove Hex-related SPI --- Sources/W3CTraceContext/Hex.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/W3CTraceContext/Hex.swift b/Sources/W3CTraceContext/Hex.swift index e315a10..672ba21 100644 --- a/Sources/W3CTraceContext/Hex.swift +++ b/Sources/W3CTraceContext/Hex.swift @@ -11,10 +11,9 @@ // //===----------------------------------------------------------------------===// -@_spi(Hex) -public enum Hex { +enum Hex { /// A lockup table for fast conversion of bytes to hex-bytes. - public static let lookup = [ + static let lookup = [ UInt8(ascii: "0"), UInt8(ascii: "1"), UInt8(ascii: "2"), UInt8(ascii: "3"), UInt8(ascii: "4"), UInt8(ascii: "5"), UInt8(ascii: "6"), UInt8(ascii: "7"), UInt8(ascii: "8"), UInt8(ascii: "9"), UInt8(ascii: "a"), UInt8(ascii: "b"), @@ -28,7 +27,7 @@ public enum Hex { /// - Parameters: /// - ascii: The ASCII bytes to convert. /// - target: The pointer to store the converted bytes into. - public static func convert( + static func convert( _ ascii: T, toBytes target: UnsafeMutableRawBufferPointer ) where T: RandomAccessCollection, T.Element == UInt8 {