fix: respond to change in GeneralPurposeAllocator's deinit fn signature
This commit is contained in:
@@ -31,7 +31,7 @@ const params = clap.parseParamsComptime(
|
||||
pub fn main() void {
|
||||
// Main Allocator for ZBA
|
||||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||
defer std.debug.assert(!gpa.deinit());
|
||||
defer std.debug.assert(gpa.deinit() == .ok);
|
||||
|
||||
const allocator = gpa.allocator();
|
||||
|
||||
|
Reference in New Issue
Block a user