From 85de022c5671d777f62ddff254a814dab05242fc Mon Sep 17 00:00:00 2001 From: Lee Cannon Date: Fri, 29 Oct 2021 00:37:25 +0100 Subject: allocgate: std Allocator interface refactor --- lib/std/priority_queue.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/std/priority_queue.zig') diff --git a/lib/std/priority_queue.zig b/lib/std/priority_queue.zig index 6d4b6634a4..1ae958f4e4 100644 --- a/lib/std/priority_queue.zig +++ b/lib/std/priority_queue.zig @@ -20,10 +20,10 @@ pub fn PriorityQueue(comptime T: type, comptime compareFn: fn (a: T, b: T) Order items: []T, len: usize, - allocator: *Allocator, + allocator: Allocator, /// Initialize and return a priority queue. - pub fn init(allocator: *Allocator) Self { + pub fn init(allocator: Allocator) Self { return Self{ .items = &[_]T{}, .len = 0, @@ -153,7 +153,7 @@ pub fn PriorityQueue(comptime T: type, comptime compareFn: fn (a: T, b: T) Order /// PriorityQueue takes ownership of the passed in slice. The slice must have been /// allocated with `allocator`. /// Deinitialize with `deinit`. - pub fn fromOwnedSlice(allocator: *Allocator, items: []T) Self { + pub fn fromOwnedSlice(allocator: Allocator, items: []T) Self { var queue = Self{ .items = items, .len = items.len, -- cgit v1.2.3