diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 13:13:17 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 14:56:36 -0300 |
| commit | 4917ae452a15ff4f32d97d215a99fdcfaab29d61 (patch) | |
| tree | 56e25907532aed6222807503bc7904fc34781e31 /src/Handover.zig | |
| parent | cf9e075d3537698e76a8fb22dc1a63622ca78c45 (diff) | |
| download | pardes-4917ae452a15ff4f32d97d215a99fdcfaab29d61.tar.gz pardes-4917ae452a15ff4f32d97d215a99fdcfaab29d61.zip | |
idioms #9, every catch unreachable this slice added is a fact of the code: each formats integers, literals, an error's name or a slice of a fixed array (the daemon's [128]u8 names, the cache's path_buf, main's cwd_buf, those two buffers now sized from their arrays), so all 39 stay, each with its reason on its own line
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Handover.zig')
| -rw-r--r-- | src/Handover.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Handover.zig b/src/Handover.zig index abba41a8..0abcf859 100644 --- a/src/Handover.zig +++ b/src/Handover.zig @@ -218,8 +218,7 @@ fn dumpCarried(p: *Pardes, kind: Kind, at: usize, ids: []const usize, seq: u32) } }{ .w = &w, .value = &value }); var name: [32]u8 = undefined; - // "handover-" and a u32 fit 32. - return pardes.Db.image(p.gpa, std.fmt.bufPrint(&name, "handover-{d}", .{seq}) catch unreachable, buf.written(), w.blobs.items, ids.len); + return pardes.Db.image(p.gpa, std.fmt.bufPrint(&name, "handover-{d}", .{seq}) catch unreachable, buf.written(), w.blobs.items, ids.len); // a u32 fits 32 } /// Whether `bytes` are a handover's dump (`dumpCarried`'s, or an older |
