From 8d84840af37dfed25f7ca43f3b2b080d20cc1d28 Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Wed, 4 Nov 2026 20:55:47 +0100 Subject: [PATCH] mod: bump zig version to 0.17.1 --- build.zig | 6 ------ src/root.zig | 12 ++++++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/build.zig b/build.zig index 723b426..594a554 100644 --- a/build.zig +++ b/build.zig @@ -66,12 +66,6 @@ pub fn build(b: *std.Build) void { // files, this ensures they will be present and in the expected location. run_cmd.step.dependOn(b.getInstallStep()); - // This allows the user to pass arguments to the application in the build - // command itself, like this: `zig build run -- arg1 arg2 etc` - if (b.args) |args| { - run_cmd.addArgs(args); - } - // This creates a build step. It will be visible in the `zig build --help` menu, // and can be selected like this: `zig build run` // This will evaluate the `run` step rather than the default, which is "install". diff --git a/src/root.zig b/src/root.zig index 4ba5cd7..62dff84 100644 --- a/src/root.zig +++ b/src/root.zig @@ -102,7 +102,7 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma try writer.writeAll(@typeName(Object)); try writer.writeAll(" = struct {\n"); inline for (s.fields) |field| { - try writer.writeAll("\t" ** (depth + 1)); + try writer.writeAll("\t" * (depth + 1)); try writer.writeAll("."); try writer.writeAll(field.name); try writer.writeAll(" = "); @@ -111,18 +111,18 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma try inner_format(@field(object, field.name), format, options, writer, depth + 1); try writer.writeAll(",\n"); } - try writer.writeAll("\t" ** depth); + try writer.writeAll("\t" * depth); try writer.writeAll("}"); }, .@"enum" => |e| { try writer.writeAll(@typeName(Object)); try writer.writeAll(" = enum {\n"); inline for (e.fields) |field| { - try writer.writeAll("\t" ** (depth + 1)); + try writer.writeAll("\t" * (depth + 1)); try writer.writeAll(field.name); try writer.writeAll(",\n"); } - try writer.writeAll("\t" ** depth); + try writer.writeAll("\t" * depth); try writer.writeAll("} = ."); try writer.writeAll(@tagName(object)); }, @@ -135,7 +135,7 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma } try writer.writeAll(" {\n"); inline for (u.fields) |field| { - try writer.writeAll("\t" ** (depth + 1)); + try writer.writeAll("\t" * (depth + 1)); try writer.writeAll(field.name); if (@typeInfo(field.type) != .void) { try writer.writeAll(": "); @@ -143,7 +143,7 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma } try writer.writeAll(",\n"); } - try writer.writeAll("\t" ** depth); + try writer.writeAll("\t" * depth); try writer.writeAll("} = "); if (u.tag_type) |Tag| { try writer.writeAll(".{ .");