diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-27 21:20:18 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-08-29 17:14:26 -0700 |
| commit | 79f267f6b9e7f80a6fed3b1019f9de942841c3be (patch) | |
| tree | 29a243d4aa85d8295cc06608bde59333ebdb843c /lib/std/Build/Cache | |
| parent | 558bea2a76179fcc00779fdd326e5a866956fc9b (diff) | |
| download | zig-79f267f6b9e7f80a6fed3b1019f9de942841c3be.tar.gz zig-79f267f6b9e7f80a6fed3b1019f9de942841c3be.zip | |
std.Io: delete GenericReader
and delete deprecated alias std.io
Diffstat (limited to 'lib/std/Build/Cache')
| -rw-r--r-- | lib/std/Build/Cache/Directory.zig | 2 | ||||
| -rw-r--r-- | lib/std/Build/Cache/Path.zig | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/Build/Cache/Directory.zig b/lib/std/Build/Cache/Directory.zig index 14a5e8a24d..a105a91ed6 100644 --- a/lib/std/Build/Cache/Directory.zig +++ b/lib/std/Build/Cache/Directory.zig @@ -56,7 +56,7 @@ pub fn closeAndFree(self: *Directory, gpa: Allocator) void { self.* = undefined; } -pub fn format(self: Directory, writer: *std.io.Writer) std.io.Writer.Error!void { +pub fn format(self: Directory, writer: *std.Io.Writer) std.Io.Writer.Error!void { if (self.path) |p| { try writer.writeAll(p); try writer.writeAll(fs.path.sep_str); diff --git a/lib/std/Build/Cache/Path.zig b/lib/std/Build/Cache/Path.zig index efd0f86105..335c1dc23e 100644 --- a/lib/std/Build/Cache/Path.zig +++ b/lib/std/Build/Cache/Path.zig @@ -151,7 +151,7 @@ pub fn fmtEscapeString(path: Path) std.fmt.Formatter(Path, formatEscapeString) { return .{ .data = path }; } -pub fn formatEscapeString(path: Path, writer: *std.io.Writer) std.io.Writer.Error!void { +pub fn formatEscapeString(path: Path, writer: *std.Io.Writer) std.Io.Writer.Error!void { if (path.root_dir.path) |p| { try std.zig.stringEscape(p, writer); if (path.sub_path.len > 0) try std.zig.stringEscape(fs.path.sep_str, writer); @@ -167,7 +167,7 @@ pub fn fmtEscapeChar(path: Path) std.fmt.Formatter(Path, formatEscapeChar) { } /// Deprecated, use double quoted escape to print paths. -pub fn formatEscapeChar(path: Path, writer: *std.io.Writer) std.io.Writer.Error!void { +pub fn formatEscapeChar(path: Path, writer: *std.Io.Writer) std.Io.Writer.Error!void { if (path.root_dir.path) |p| { for (p) |byte| try std.zig.charEscape(byte, writer); if (path.sub_path.len > 0) try writer.writeByte(fs.path.sep); @@ -177,7 +177,7 @@ pub fn formatEscapeChar(path: Path, writer: *std.io.Writer) std.io.Writer.Error! } } -pub fn format(self: Path, writer: *std.io.Writer) std.io.Writer.Error!void { +pub fn format(self: Path, writer: *std.Io.Writer) std.Io.Writer.Error!void { if (std.fs.path.isAbsolute(self.sub_path)) { try writer.writeAll(self.sub_path); return; |
