diff --git a/Sources/NewCodable/JSON/NewJSONEncoder.swift b/Sources/NewCodable/JSON/NewJSONEncoder.swift index 650b14617..c0a43de25 100644 --- a/Sources/NewCodable/JSON/NewJSONEncoder.swift +++ b/Sources/NewCodable/JSON/NewJSONEncoder.swift @@ -434,15 +434,7 @@ public struct JSONDirectEncoder: CommonEncoder, ~Copyable, ~Escapable { @_lifetime(self: copy self) public mutating func encodeBytes(_ bytes: [UInt8]) throws(CodingError.Encoding) { - fatalError("TODO: Disabled to allow the compiler to work??") -// do { -// try bytes.withUnsafeBytes { ptr throws(CodingError.Encoding) in -// try self.encodeBytes(ptr, count: ptr.count) -// } -// } catch { -// // TODO: Fix unsavory workaround -// throw error as! CodingError.Encoding -// } + try self.encodeBytes(bytes.span.bytes) } @_lifetime(self: copy self)