Fix compilation error in tests
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kayomn 2022-10-15 01:28:13 +01:00
parent 26f342e518
commit 01e6a7cb56
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ pub fn Fixed(comptime Element: type) type {
return io.Writer.wrap(Self, self, struct {
fn write(stack: *Self, buffer: []const u8) usize {
stack.pushAll(buffer) catch |err| switch (err) {
error.Overflow => return 0,
error.OutOfMemory => return 0,
};
return buffer.len;