diff options
Diffstat (limited to 'src/Db.zig')
| -rw-r--r-- | src/Db.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1115,7 +1115,7 @@ pub const Cache = struct { }{ .cap = c.cap, .went = &went }) catch return; if (!went) return; var new_buf: [4200]u8 = undefined; - const new = std.fmt.bufPrint(&new_buf, "{s}.new", .{c.path()}) catch return; + const new = std.fmt.bufPrint(&new_buf, "{s}.new", .{c.path()}) catch unreachable; // a path of 4096 fits 4200 const cwd = std.Io.Dir.cwd(); const file = cwd.createFile(io, new, .{ .read = true, .truncate = true }) catch return; var buffer: std.Io.Writer.Allocating = .init(std.heap.c_allocator); |
