fix(RingBuffer): remove restrictive memset

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-12-20 11:37:11 -06:00
parent 322c798e38
commit 14ea006f4f
1 changed files with 0 additions and 2 deletions

View File

@ -200,8 +200,6 @@ pub fn RingBuffer(comptime T: type) type {
std.debug.assert(std.math.isPowerOfTwo(buf.len)); // capacity must be a power of two
std.debug.assert(buf.len <= max_capacity);
@memset(buf, 0);
return .{ .read = 0, .write = 0, .buf = buf };
}