| ... | ... | @@ -10,6 +10,8 @@ const assert = debug.assert; |
| 10 | 10 | const testing = std.testing; |
| 11 | 11 | |
| 12 | 12 | pub fn FixedSizeFifo(comptime T: type) type { |
| 13 | const autoalign = false; |
| 14 | |
| 13 | 15 | return struct { |
| 14 | 16 | allocator: *Allocator, |
| 15 | 17 | buf: []T, |
| ... | ... | @@ -107,8 +109,6 @@ pub fn FixedSizeFifo(comptime T: type) type { |
| 107 | 109 | return self.readableSliceMut(offset); |
| 108 | 110 | } |
| 109 | 111 | |
| 110 | | const autoalign = false; |
| 111 | | |
| 112 | 112 | /// Discard first `count` bytes of readable data |
| 113 | 113 | pub fn discard(self: *Self, count: usize) void { |
| 114 | 114 | assert(count <= self.count); |