diff options
| author | Manlio Perillo <[email protected]> | 2023-05-07 20:18:24 +0200 |
|---|---|---|
| committer | Manlio Perillo <[email protected]> | 2023-05-09 11:07:22 +0200 |
| commit | dd5df9f7ccce03786793b8dae4d1e7c4800f6647 (patch) | |
| tree | 63db507a5f9337c5ca9719c0cae01eb41d81677f /build.zig | |
| parent | bb42451b0f6c6ce9b53ee7959a52cfc6cef0e19c (diff) | |
| download | ziglings-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.zig | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) { |
