diff options
author | 2023-02-23 23:57:19 -0800 | |
---|---|---|
committer | 2023-02-23 23:57:19 -0800 | |
commit | 3f04f8d0a653cf5decef2225c2044742b382718a (patch) | |
tree | 91eb6500834e3157ecb9ab208101aa368a1191c8 /misctools/fetch.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 'misctools/fetch.zig')
-rw-r--r-- | misctools/fetch.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misctools/fetch.zig b/misctools/fetch.zig index 74622b0ef..cdefd29d4 100644 --- a/misctools/fetch.zig +++ b/misctools/fetch.zig @@ -108,7 +108,7 @@ pub const Arguments = struct { if (args.option("--file")) |file_path| { if (file_path.len > 0) { var cwd = try std.process.getCwd(&cwd_buf); - var parts = [_]string{std.mem.span(file_path)}; + var parts = [_]string{file_path}; var absolute_path = path_handler.joinAbsStringBuf(cwd, &file_path_buf, &parts, .auto); file_path_buf[absolute_path.len] = 0; file_path_buf[absolute_path.len + 1] = 0; @@ -132,7 +132,7 @@ pub const Arguments = struct { var raw_arg_i: usize = 0; while (raw_arg_i < raw_args.items.len) : (raw_arg_i += 1) { const arg = raw_args.items[raw_arg_i]; - if (MethodNames.get(std.mem.span(arg))) |method_| { + if (MethodNames.get(arg[0..])) |method_| { method = method_; _ = raw_args.swapRemove(raw_arg_i); } |