mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
zig fmt
This commit is contained in:
@@ -872,7 +872,7 @@ pub fn startHeapProfiler(self: *Context) void {
|
|||||||
self.heap_profiler = heap_profiler;
|
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;
|
var ls: js.Local.Scope = undefined;
|
||||||
self.localScope(&ls);
|
self.localScope(&ls);
|
||||||
defer ls.deinit();
|
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, .{});
|
break :blk try ls.local.jsStringToZig(string_handle, .{});
|
||||||
};
|
};
|
||||||
|
|
||||||
return .{allocating, snapshot};
|
return .{ allocating, snapshot };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,15 +103,16 @@ fn report(reason: []const u8, begin_addr: usize) !void {
|
|||||||
// overwrite the last character with our null terminator, safest since
|
// overwrite the last character with our null terminator, safest since
|
||||||
// our buffer could be full at this point
|
// our buffer could be full at this point
|
||||||
written[written.len] = 0;
|
written[written.len] = 0;
|
||||||
break :blk written[0..written.len + 1];
|
break :blk written[0 .. written.len + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
var argv = [_:null]?[*:0]const u8{
|
var argv = [_:null]?[*:0]const u8{
|
||||||
curl_path[0..curl_path_len :0],
|
curl_path[0..curl_path_len :0],
|
||||||
"-fsSL",
|
"-fsSL",
|
||||||
"-H", "Content-Type: application/octet-stream",
|
"-H",
|
||||||
|
"Content-Type: application/octet-stream",
|
||||||
"--data-binary",
|
"--data-binary",
|
||||||
stack[0..stack.len - 1 : 0],
|
stack[0 .. stack.len - 1 :0],
|
||||||
url[0 .. url.len - 1 :0],
|
url[0 .. url.len - 1 :0],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user