mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std: fifo.deinit didn't need to take a pointer
This commit is contained in:
parent
3062e0e932
commit
b4091e3aec
@ -78,9 +78,8 @@ pub fn LinearFifo(
|
||||
},
|
||||
};
|
||||
|
||||
pub fn deinit(self: *Self) void {
|
||||
pub fn deinit(self: Self) void {
|
||||
if (buffer_type == .Dynamic) self.allocator.free(self.buf);
|
||||
self.* = undefined;
|
||||
}
|
||||
|
||||
pub fn realign(self: *Self) void {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user