mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
build: use the blank identifier in the parameter list
Instead of marking a parameter as unused inside the function body.
This commit is contained in:
parent
bb42451b0f
commit
dd5df9f7cc
1 changed files with 2 additions and 4 deletions
|
@ -614,8 +614,7 @@ const PrintStep = struct {
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make(step: *Step, prog_node: *std.Progress.Node) !void {
|
fn make(step: *Step, _: *std.Progress.Node) !void {
|
||||||
_ = prog_node;
|
|
||||||
const self = @fieldParentPtr(PrintStep, "step", step);
|
const self = @fieldParentPtr(PrintStep, "step", step);
|
||||||
|
|
||||||
print("{s}", .{self.message});
|
print("{s}", .{self.message});
|
||||||
|
@ -642,8 +641,7 @@ const SkipStep = struct {
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make(step: *Step, prog_node: *std.Progress.Node) !void {
|
fn make(step: *Step, _: *std.Progress.Node) !void {
|
||||||
_ = prog_node;
|
|
||||||
const self = @fieldParentPtr(SkipStep, "step", step);
|
const self = @fieldParentPtr(SkipStep, "step", step);
|
||||||
|
|
||||||
if (self.exercise.skip) {
|
if (self.exercise.skip) {
|
||||||
|
|
Loading…
Reference in a new issue