diff --git a/lib/std/crypto/codecs/asn1/Oid.zig b/lib/std/crypto/codecs/asn1/Oid.zig index 3a8c45cb3e5892e1c79d2867a785a2d4208b5a34..2cc6dfc090edf767848ae55899a5ac46c23c1638 100644 --- a/lib/std/crypto/codecs/asn1/Oid.zig +++ b/lib/std/crypto/codecs/asn1/Oid.zig @@ -47,7 +47,7 @@ test fromDot { } } -pub fn toDot(self: Oid, writer: anytype) @TypeOf(writer).Error!void { +pub fn toDot(self: Oid, writer: *std.Io.Writer) std.Io.Writer.Error!void { const encoded = self.encoded; const first = @divTrunc(encoded[0], 40); const second = encoded[0] - first * 40; @@ -81,7 +81,7 @@ test toDot { for (test_cases) |t| { var stream: std.Io.Writer = .fixed(&buf); try toDot(Oid{ .encoded = t.encoded }, &stream); - try std.testing.expectEqualStrings(t.dot_notation, stream.written()); + try std.testing.expectEqualStrings(t.dot_notation, stream.buffered()); } }