diff options
-rw-r--r-- | src/bun.js/api/bun/subprocess.zig | 2 | ||||
-rw-r--r-- | src/bun.js/webcore/streams.zig | 6 |
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, }; |