aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorManlio Perillo <[email protected]>2023-05-07 20:18:24 +0200
committerManlio Perillo <[email protected]>2023-05-09 11:07:22 +0200
commitdd5df9f7ccce03786793b8dae4d1e7c4800f6647 (patch)
tree63db507a5f9337c5ca9719c0cae01eb41d81677f /build.zig
parentbb42451b0f6c6ce9b53ee7959a52cfc6cef0e19c (diff)
downloadziglings-dd5df9f7ccce03786793b8dae4d1e7c4800f6647.tar.xz
ziglings-dd5df9f7ccce03786793b8dae4d1e7c4800f6647.zip
build: use the blank identifier in the parameter list
Instead of marking a parameter as unused inside the function body.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/build.zig b/build.zig
index 0fc7ca5..c0515a3 100644
--- a/build.zig
+++ b/build.zig
@@ -614,8 +614,7 @@ const PrintStep = struct {
return self;
}
- fn make(step: *Step, prog_node: *std.Progress.Node) !void {
- _ = prog_node;
+ fn make(step: *Step, _: *std.Progress.Node) !void {
const self = @fieldParentPtr(PrintStep, "step", step);
print("{s}", .{self.message});
@@ -642,8 +641,7 @@ const SkipStep = struct {
return self;
}
- fn make(step: *Step, prog_node: *std.Progress.Node) !void {
- _ = prog_node;
+ fn make(step: *Step, _: *std.Progress.Node) !void {
const self = @fieldParentPtr(SkipStep, "step", step);
if (self.exercise.skip) {