diff options
| author | kcbanner <kcbanner@gmail.com> | 2025-09-06 01:13:34 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-09-06 18:51:26 -0700 |
| commit | cc6d9fdbf40cc23d2ec47d2f7db74a84fbefd1ac (patch) | |
| tree | 70f9c14c9c40c06e61aad70cd9a301ec9dc25030 /lib/build-web/fuzz.zig | |
| parent | 4c012756643ee1f18740ac88180635defa8dc6f2 (diff) | |
| download | zig-cc6d9fdbf40cc23d2ec47d2f7db74a84fbefd1ac.tar.gz zig-cc6d9fdbf40cc23d2ec47d2f7db74a84fbefd1ac.zip | |
webui: fixup build errors in fuzz / time_report
Diffstat (limited to 'lib/build-web/fuzz.zig')
| -rw-r--r-- | lib/build-web/fuzz.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/build-web/fuzz.zig b/lib/build-web/fuzz.zig index 29b37e3465..c694e9e69e 100644 --- a/lib/build-web/fuzz.zig +++ b/lib/build-web/fuzz.zig @@ -101,22 +101,22 @@ const SourceLocationIndex = enum(u32) { fn sourceLocationLinkHtml( sli: SourceLocationIndex, - out: *std.ArrayListUnmanaged(u8), + out: *std.ArrayList(u8), focused: bool, - ) Allocator.Error!void { + ) error{OutOfMemory}!void { const sl = sli.ptr(); - try out.writer(gpa).print("<code{s}>", .{ + try out.print(gpa, "<code{s}>", .{ @as([]const u8, if (focused) " class=\"status-running\"" else ""), }); try sli.appendPath(out); - try out.writer(gpa).print(":{d}:{d} </code><button class=\"linkish\" onclick=\"wasm_exports.fuzzSelectSli({d});\">View</button>", .{ + try out.print(gpa, ":{d}:{d} </code><button class=\"linkish\" onclick=\"wasm_exports.fuzzSelectSli({d});\">View</button>", .{ sl.line, sl.column, @intFromEnum(sli), }); } - fn appendPath(sli: SourceLocationIndex, out: *std.ArrayListUnmanaged(u8)) Allocator.Error!void { + fn appendPath(sli: SourceLocationIndex, out: *std.ArrayList(u8)) error{OutOfMemory}!void { const sl = sli.ptr(); const file = coverage.fileAt(sl.file); const file_name = coverage.stringAt(file.basename); @@ -294,7 +294,7 @@ fn updateStats() error{OutOfMemory}!void { } fn updateEntryPoints() error{OutOfMemory}!void { - var html: std.ArrayListUnmanaged(u8) = .empty; + var html: std.ArrayList(u8) = .empty; defer html.deinit(gpa); for (entry_points.items) |sli| { try html.appendSlice(gpa, "<li>"); |
