From 77671575bd2f481651ea54e956ac5c7da8d63710 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 12:14:58 -0300 Subject: idioms #1, std.fs's deprecated aliases in the hosts: std.fs.path and std.fs.max_path_bytes are std.Io.Dir.path and std.Io.Dir.max_path_bytes in 0.17, so the hosts name them there Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/Handover.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Handover.zig') diff --git a/src/Handover.zig b/src/Handover.zig index fdd263e9..23baf4ad 100644 --- a/src/Handover.zig +++ b/src/Handover.zig @@ -394,7 +394,7 @@ fn carry(io: std.Io, job: *Job) void { if (under) |dial| { var line_buf: [600]u8 = undefined; const line = std.fmt.bufPrint(&line_buf, "adopt {s}\n", .{job.path}) catch return job.post(job.post_ctx, job.seq, false, "its dump's name is too long"); - const name = std.fs.path.basename(dial); + const name = std.Io.Dir.path.basename(dial); if (ninep_io.Client.write(job.gpa, dial, "ctl", line)) { return job.post(job.post_ctx, job.seq, true, std.fmt.bufPrint(&words, "pardes/{s}", .{name}) catch "another window"); } else |err| return job.post(job.post_ctx, job.seq, false, std.fmt.bufPrint(&words, "pardes/{s} would not take it: {s}", .{ -- cgit v1.3