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 --- src/Cache.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Cache.zig') diff --git a/src/Cache.zig b/src/Cache.zig index fe769cb32a..1362f6d816 100644 --- a/src/Cache.zig +++ b/src/Cache.zig @@ -1,4 +1,4 @@ -gpa: *Allocator, +gpa: Allocator, manifest_dir: fs.Dir, hash: HashHelper = .{}, @@ -48,7 +48,7 @@ pub const File = struct { bin_digest: BinDigest, contents: ?[]const u8, - pub fn deinit(self: *File, allocator: *Allocator) void { + pub fn deinit(self: *File, allocator: Allocator) void { if (self.path) |owned_slice| { allocator.free(owned_slice); self.path = null; -- cgit v1.2.3