From 60dd9514c8676e79c625948b5e9d2c6d745e8e87 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 12:14:58 -0300 Subject: idioms #3, the allocator a function is handed: Handover.carries opens its dump with the caller's gpa, not the page allocator, and Client.follow and stepGlide lose the gpa they never used Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/9p_io.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/9p_io.zig') diff --git a/src/9p_io.zig b/src/9p_io.zig index 72548d2a..10109bb8 100644 --- a/src/9p_io.zig +++ b/src/9p_io.zig @@ -2613,7 +2613,6 @@ pub const Client = struct { /// a time, until `record(ctx, bytes)` says done. An end of file or a /// dropped connection is Hangup. What `pardes --wait` blocks on. pub fn follow( - gpa: std.mem.Allocator, dial: []const u8, path: []const u8, first: []const u8, @@ -2625,7 +2624,6 @@ pub const Client = struct { var names: [max_depth][]const u8 = undefined; const n = try elements(path, &names); var remote: RemoteError = .{}; - _ = gpa; const s = try startSession(dial, path); defer endSession(s, false); const fid = try walkTo(s, names[0..n], &remote); -- cgit v1.3