From 1f2a8e6b126b618f09f660083789ecb070d2ceb7 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Sat, 26 Jul 2025 11:10:02 -0400 Subject: [PATCH 1/2] handle: fixup format --- src/handle.zig | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/handle.zig b/src/handle.zig index bb30b32..1ef3020 100644 --- a/src/handle.zig +++ b/src/handle.zig @@ -142,14 +142,7 @@ pub fn Handle( } }; - pub fn format( - self: Self, - comptime fmt: []const u8, - options: std.fmt.FormatOptions, - writer: anytype, - ) !void { - _ = fmt; - _ = options; + pub fn format(self: Self, writer: *std.io.Writer) std.io.Writer.Error!void { const n = @typeName(Resource); const a = self.addressable(); return writer.print("{s}[{}#{}]", .{ n, a.index, a.cycle }); @@ -273,6 +266,6 @@ test "Handle.format()" { const h = H.init(0, 1); var buffer = [_]u8{0} ** 128; - const s = try bufPrint(buffer[0..], "{}", .{h}); + const s = try bufPrint(buffer[0..], "{f}", .{h}); try expectEqualStrings("handle.test.Handle.format().Foo[0#1]", s); } From bf0a628cb3572046eba49d954c1794f0c8d4a97a Mon Sep 17 00:00:00 2001 From: Chris Heyes <22148308+hazeycode@users.noreply.github.com> Date: Tue, 4 Nov 2025 00:05:56 +0000 Subject: [PATCH 2/2] update minimum_zig_version to 0.15.1 --- build.zig.zon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index f20291f..37e3ee0 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -2,7 +2,7 @@ .name = .zpool, .fingerprint = 0xfb9579e9d9bd6e6c, .version = "0.11.0-dev", - .minimum_zig_version = "0.14.0", + .minimum_zig_version = "0.15.1", .paths = .{ "build.zig", "build.zig.zon",