Skip to content

Commit 996b843

Browse files
committed
Fix the unit tests
1 parent 334cf92 commit 996b843

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/RESP3/RESP3Token.swift

+4
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ public struct RESP3Token: Hashable, Sendable {
259259
try self.init(consuming: &buffer, depth: 0)
260260
}
261261

262+
public init(validated buffer: ByteBuffer) {
263+
self.wrapped = .init(buffer: buffer)
264+
}
265+
262266
fileprivate init?(consuming buffer: inout ByteBuffer, depth: Int) throws {
263267
let validated: ByteBuffer?
264268

0 commit comments

Comments
 (0)