fix: respond to change in GeneralPurposeAllocator's deinit fn signature

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-04-24 21:47:41 -05:00
parent 53fb1d163b
commit f6527da948
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit ab69ef2db44b6c4b7f00283d52d38fbe71d16c42 Subproject commit 05a50fe7fe833059db8550c34bc69fedd8bb0af8

View File

@ -31,7 +31,7 @@ const params = clap.parseParamsComptime(
pub fn main() void { pub fn main() void {
// Main Allocator for ZBA // Main Allocator for ZBA
var gpa = std.heap.GeneralPurposeAllocator(.{}){}; var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer std.debug.assert(!gpa.deinit()); defer std.debug.assert(gpa.deinit() == .ok);
const allocator = gpa.allocator(); const allocator = gpa.allocator();