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/fonts.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fonts.zig') diff --git a/src/fonts.zig b/src/fonts.zig index a49ef9e4..505190bd 100644 --- a/src/fonts.zig +++ b/src/fonts.zig @@ -123,7 +123,7 @@ fn scan( if (e.depth() < max_depth) w.enter(io, e) catch {}; continue; } - const ext = std.fs.path.extension(e.basename); + const ext = std.Io.Dir.path.extension(e.basename); // .ttc is a collection: several cuts of one family in a single // file, which is how macOS ships Menlo, Courier and a third of // everything else. The probe below reads face 0 out of one, and @@ -392,7 +392,7 @@ test "the walk finds this machine's monospace faces" { try std.testing.expect(font.name.len > 0); try std.testing.expect(font.path[0] == '/'); // The name is the stem, so the file it came from is always longer. - try std.testing.expect(std.fs.path.basename(font.path).len > font.name.len); + try std.testing.expect(std.Io.Dir.path.basename(font.path).len > font.name.len); } // macOS ships Menlo, and ships it inside a .ttc. It is the one face this -- cgit v1.3