diff --git a/src/browser/js/Context.zig b/src/browser/js/Context.zig index de24fdb1..801ba782 100644 --- a/src/browser/js/Context.zig +++ b/src/browser/js/Context.zig @@ -872,7 +872,7 @@ pub fn startHeapProfiler(self: *Context) void { self.heap_profiler = heap_profiler; } -pub fn stopHeapProfiler(self: *Context) !struct{[]const u8, []const u8} { +pub fn stopHeapProfiler(self: *Context) !struct { []const u8, []const u8 } { var ls: js.Local.Scope = undefined; self.localScope(&ls); defer ls.deinit(); @@ -893,5 +893,5 @@ pub fn stopHeapProfiler(self: *Context) !struct{[]const u8, []const u8} { break :blk try ls.local.jsStringToZig(string_handle, .{}); }; - return .{allocating, snapshot}; + return .{ allocating, snapshot }; } diff --git a/src/crash_handler.zig b/src/crash_handler.zig index f7063042..ca24cf31 100644 --- a/src/crash_handler.zig +++ b/src/crash_handler.zig @@ -103,15 +103,16 @@ fn report(reason: []const u8, begin_addr: usize) !void { // overwrite the last character with our null terminator, safest since // our buffer could be full at this point written[written.len] = 0; - break :blk written[0..written.len + 1]; + break :blk written[0 .. written.len + 1]; }; var argv = [_:null]?[*:0]const u8{ curl_path[0..curl_path_len :0], "-fsSL", - "-H", "Content-Type: application/octet-stream", + "-H", + "Content-Type: application/octet-stream", "--data-binary", - stack[0..stack.len - 1 : 0], + stack[0 .. stack.len - 1 :0], url[0 .. url.len - 1 :0], };