mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-08 01:57:02 +09:00
Fixed the changes from reworking std.Progress.
For details: https://github.com/ziglang/zig/pull/20059
This commit is contained in:
parent
776316e60b
commit
b224ed510e
3 changed files with 11 additions and 10 deletions
|
@ -150,7 +150,7 @@ const CheckNamedStep = struct {
|
|||
return self;
|
||||
}
|
||||
|
||||
fn make(step: *Step, _: *std.Progress.Node) !void {
|
||||
fn make(step: *Step, _: std.Progress.Node) !void {
|
||||
const b = step.owner;
|
||||
const self: *CheckNamedStep = @alignCast(@fieldParentPtr("step", step));
|
||||
const ex = self.exercise;
|
||||
|
@ -202,7 +202,7 @@ const CheckStep = struct {
|
|||
return self;
|
||||
}
|
||||
|
||||
fn make(step: *Step, _: *std.Progress.Node) !void {
|
||||
fn make(step: *Step, _: std.Progress.Node) !void {
|
||||
const b = step.owner;
|
||||
const self: *CheckStep = @alignCast(@fieldParentPtr("step", step));
|
||||
const exercises = self.exercises;
|
||||
|
@ -325,7 +325,7 @@ const FailStep = struct {
|
|||
return self;
|
||||
}
|
||||
|
||||
fn make(step: *Step, _: *std.Progress.Node) !void {
|
||||
fn make(step: *Step, _: std.Progress.Node) !void {
|
||||
const b = step.owner;
|
||||
const self: *FailStep = @alignCast(@fieldParentPtr("step", step));
|
||||
|
||||
|
@ -368,7 +368,7 @@ const HealStep = struct {
|
|||
return self;
|
||||
}
|
||||
|
||||
fn make(step: *Step, _: *std.Progress.Node) !void {
|
||||
fn make(step: *Step, _: std.Progress.Node) !void {
|
||||
const b = step.owner;
|
||||
const self: *HealStep = @alignCast(@fieldParentPtr("step", step));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue