aboutsummaryrefslogtreecommitdiff
path: root/src/cache.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.zig')
-rw-r--r--src/cache.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.zig b/src/cache.zig
index 996f09588..c28312fbf 100644
--- a/src/cache.zig
+++ b/src/cache.zig
@@ -141,10 +141,10 @@ pub fn NewCache(comptime cache_files: bool) type {
var res = c.entries.getOrPut(path) catch unreachable;
if (res.found_existing) {
- res.entry.value.deinit(c.entries.allocator);
+ res.value_ptr.*.deinit(c.entries.allocator);
}
- res.entry.value = entry;
- return res.entry.value;
+ res.value_ptr.* = entry;
+ return res.value_ptr.*;
} else {
return entry;
}