aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-28 01:05:24 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-28 01:05:24 -0800
commitda07811427cc10754414c0f1064c4158b8941fa2 (patch)
treedf7cf4d6a34e1f9d7be62cd71befd39216951ac7 /src
parentc0dd2841362b67fdb5ede262b19688004a4eb9a4 (diff)
downloadbun-da07811427cc10754414c0f1064c4158b8941fa2.tar.gz
bun-da07811427cc10754414c0f1064c4158b8941fa2.tar.zst
bun-da07811427cc10754414c0f1064c4158b8941fa2.zip
Fix build issue on latest zig
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/api/bun/subprocess.zig2
-rw-r--r--src/bun.js/webcore/streams.zig6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bun.js/api/bun/subprocess.zig b/src/bun.js/api/bun/subprocess.zig
index 38141c34c..6352c936d 100644
--- a/src/bun.js/api/bun/subprocess.zig
+++ b/src/bun.js/api/bun/subprocess.zig
@@ -796,7 +796,7 @@ pub const Subprocess = struct {
var sink = try globalThis.bunVM().allocator.create(JSC.WebCore.FileSink);
sink.* = .{
.fd = fd,
- .buffer = bun.ByteList.init(&.{}),
+ .buffer = bun.ByteList{},
.allocator = globalThis.bunVM().allocator,
.auto_close = true,
};
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig
index c355ae13d..6428fb566 100644
--- a/src/bun.js/webcore/streams.zig
+++ b/src/bun.js/webcore/streams.zig
@@ -1502,7 +1502,7 @@ pub const FileSink = struct {
pub fn init(allocator: std.mem.Allocator, next: ?Sink) !*FileSink {
var this = try allocator.create(FileSink);
this.* = FileSink{
- .buffer = bun.ByteList.init(&.{}),
+ .buffer = bun.ByteList{},
.allocator = allocator,
.next = next,
};
@@ -1514,7 +1514,7 @@ pub const FileSink = struct {
allocator: std.mem.Allocator,
) void {
this.* = FileSink{
- .buffer = bun.ByteList.init(&.{}),
+ .buffer = bun.ByteList{},
.allocator = allocator,
.next = null,
};
@@ -1792,7 +1792,7 @@ pub const ArrayBufferSink = struct {
allocator: std.mem.Allocator,
) void {
this.* = ArrayBufferSink{
- .bytes = bun.ByteList.init(&.{}),
+ .bytes = bun.ByteList{},
.allocator = allocator,
.next = null,
};