From feffdff4094ea3927eb3880b46b65e700f1e86fb Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Wed, 13 Dec 2023 08:53:06 +0100 Subject: Remove the default allocator from `ParseOptions` fixes #111 --- clap.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'clap.zig') diff --git a/clap.zig b/clap.zig index 302c8bb..e8a43d0 100644 --- a/clap.zig +++ b/clap.zig @@ -641,12 +641,7 @@ test "Diagnostic.report" { /// Options that can be set to customize the behavior of parsing. pub const ParseOptions = struct { - /// The allocator used for all memory allocations. Defaults to the `heap.page_allocator`. - /// Note: You should probably override this allocator if you are calling `parseEx`. Unlike - /// `parse`, `parseEx` does not wrap the allocator so the heap allocator can be - /// quite expensive. (TODO: Can we pick a better default? For `parse`, this allocator - /// is fine, as it wraps it in an arena) - allocator: mem.Allocator = heap.page_allocator, + allocator: mem.Allocator, diagnostic: ?*Diagnostic = null, }; -- cgit v1.2.3