| ... | ... | @@ -47,7 +47,7 @@ test fromDot { |
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | | pub fn toDot(self: Oid, writer: anytype) @TypeOf(writer).Error!void { |
| 50 | pub fn toDot(self: Oid, writer: *std.Io.Writer) std.Io.Writer.Error!void { |
| 51 | 51 | const encoded = self.encoded; |
| 52 | 52 | const first = @divTrunc(encoded[0], 40); |
| 53 | 53 | const second = encoded[0] - first * 40; |
| ... | ... | @@ -81,7 +81,7 @@ test toDot { |
| 81 | 81 | for (test_cases) |t| { |
| 82 | 82 | var stream: std.Io.Writer = .fixed(&buf); |
| 83 | 83 | try toDot(Oid{ .encoded = t.encoded }, &stream); |
| 84 | | try std.testing.expectEqualStrings(t.dot_notation, stream.written()); |
| 84 | try std.testing.expectEqualStrings(t.dot_notation, stream.buffered()); |
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | |