diff options
author | 2023-02-23 23:57:19 -0800 | |
---|---|---|
committer | 2023-02-23 23:57:19 -0800 | |
commit | 3f04f8d0a653cf5decef2225c2044742b382718a (patch) | |
tree | 91eb6500834e3157ecb9ab208101aa368a1191c8 /src/report.zig | |
parent | b5bdde28ed34070cbb1d34d13f414f4c513ee40d (diff) | |
download | bun-3f04f8d0a653cf5decef2225c2044742b382718a.tar.gz bun-3f04f8d0a653cf5decef2225c2044742b382718a.tar.zst bun-3f04f8d0a653cf5decef2225c2044742b382718a.zip |
Upgrade Zig (#2151)
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
Diffstat (limited to '')
-rw-r--r-- | src/report.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/report.zig b/src/report.zig index 62b807f0e..b3724e1d2 100644 --- a/src/report.zig +++ b/src/report.zig @@ -72,12 +72,12 @@ pub const CrashReportWriter = struct { .{ base_dir, Global.package_json_version, @intCast(u64, @max(std.time.milliTimestamp(), 0)) }, ) catch return; - std.fs.cwd().makeDir(std.fs.path.dirname(std.mem.span(file_path)).?) catch {}; + std.fs.cwd().makeDir(std.fs.path.dirname(bun.asByteSlice(file_path)).?) catch {}; var file = std.fs.cwd().createFileZ(file_path, .{ .truncate = true }) catch return; this.file = std.io.bufferedWriter( file.writer(), ); - this.file_path = std.mem.span(file_path); + this.file_path = bun.asByteSlice(file_path); } pub fn printPath(this: *CrashReportWriter) void { |