diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-21 17:25:52 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-22 10:03:15 -0300 |
| commit | 23518c9d7c061f8a06f6632da8b64b37801b514f (patch) | |
| tree | 1f9688a5c2b2c224f47dd538ffab275b1f54da5c /test/perf.zig | |
| parent | bc3d18d27f9fc1155db7fac3946c4d38774f9e65 (diff) | |
| download | pardes-23518c9d7c061f8a06f6632da8b64b37801b514f.tar.gz pardes-23518c9d7c061f8a06f6632da8b64b37801b514f.zip | |
zig fmt for Zig 0.17
Diffstat (limited to 'test/perf.zig')
| -rw-r--r-- | test/perf.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/perf.zig b/test/perf.zig index d01d1bb5..7662d028 100644 --- a/test/perf.zig +++ b/test/perf.zig @@ -517,8 +517,8 @@ fn gate(cells: *const [std.enums.values(Op).len][fixtures.len]Cell, base: *const }; // Typing beside a twin costs about what typing alone does, whatever the // baseline: the twin takes the splice, never a copy of the text. - const twin_op = @intFromEnum(Op.edit_twin); - const alone_op = @intFromEnum(Op.edit_char); + const twin_op = @backingInt(Op.edit_twin); + const alone_op = @backingInt(Op.edit_char); for (fixtures, 0..) |fx, fi| { const twin = cells[twin_op][fi].min_us; const alone = cells[alone_op][fi].min_us; @@ -1220,7 +1220,7 @@ fn measureMini(io: std.Io, fallback: std.mem.Allocator, reps: usize, json: bool) break :blk try pardes.syntax.highlightFileRange(gpa, path, source, 0, source.len); }; defer gpa.free(styles); - if (styles.len != source.len or std.mem.indexOfScalar(u8, styles, @intFromEnum(pardes.syntax.Syn.comment)) == null) + if (styles.len != source.len or std.mem.indexOfScalar(u8, styles, @backingInt(pardes.syntax.Syn.comment)) == null) return error.MiniSyntaxUnavailable; const expected = try pardes.panes.mini.generate(gpa, source, styles); defer expected.deinit(gpa); |
