aboutsummaryrefslogtreecommitdiff
path: root/src/deps/uws.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-09 05:39:05 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-09 05:39:05 -0700
commit7bd6a1f86d99c1374cb1eb15ff263dc352a8837b (patch)
tree6b7646d6bf34ca83844f713b3be671dc71a40b37 /src/deps/uws.zig
parent1e717dd941090b5c52f36445f3a53d41e1bc7894 (diff)
downloadbun-7bd6a1f86d99c1374cb1eb15ff263dc352a8837b.tar.gz
bun-7bd6a1f86d99c1374cb1eb15ff263dc352a8837b.tar.zst
bun-7bd6a1f86d99c1374cb1eb15ff263dc352a8837b.zip
Remove usages of `void{}` in favor of `{}`
See https://github.com/ziglang/zig/issues/15213
Diffstat (limited to 'src/deps/uws.zig')
-rw-r--r--src/deps/uws.zig18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/deps/uws.zig b/src/deps/uws.zig
index af2027b63..e87e3280f 100644
--- a/src/deps/uws.zig
+++ b/src/deps/uws.zig
@@ -1079,7 +1079,7 @@ pub fn NewApp(comptime ssl: bool) type {
.always_inline,
handler,
.{
- void{},
+ {},
req,
@ptrCast(*Response, @alignCast(@alignOf(*Response), res)),
},
@@ -1253,7 +1253,7 @@ pub fn NewApp(comptime ssl: bool) type {
const Wrapper = struct {
pub fn handle(socket: ?*uws.ListenSocket, conf: uws_app_listen_config_t, data: ?*anyopaque) callconv(.C) void {
if (comptime UserData == void) {
- @call(.always_inline, handler, .{ void{}, @ptrCast(?*ThisApp.ListenSocket, socket), conf });
+ @call(.always_inline, handler, .{ {}, @ptrCast(?*ThisApp.ListenSocket, socket), conf });
} else {
@call(.always_inline, handler, .{
@ptrCast(UserData, @alignCast(@alignOf(UserData), data.?)),
@@ -1276,7 +1276,7 @@ pub fn NewApp(comptime ssl: bool) type {
const Wrapper = struct {
pub fn handle(socket: ?*uws.ListenSocket, data: ?*anyopaque) callconv(.C) void {
if (comptime UserData == void) {
- @call(.always_inline, handler, .{ void{}, @ptrCast(?*ThisApp.ListenSocket, socket) });
+ @call(.always_inline, handler, .{ {}, @ptrCast(?*ThisApp.ListenSocket, socket) });
} else {
@call(.always_inline, handler, .{
@ptrCast(UserData, @alignCast(@alignOf(UserData), data.?)),
@@ -1396,7 +1396,7 @@ pub fn NewApp(comptime ssl: bool) type {
const Wrapper = struct {
pub fn handle(this: *uws_res, amount: uintmax_t, data: ?*anyopaque) callconv(.C) bool {
if (comptime UserDataType == void) {
- return @call(.always_inline, handler, .{ void{}, amount, castRes(this) });
+ return @call(.always_inline, handler, .{ {}, amount, castRes(this) });
} else {
return @call(.always_inline, handler, .{
@ptrCast(UserDataType, @alignCast(@alignOf(UserDataType), data.?)),
@@ -1417,7 +1417,7 @@ pub fn NewApp(comptime ssl: bool) type {
const Wrapper = struct {
pub fn handle(this: *uws_res, user_data: ?*anyopaque) callconv(.C) void {
if (comptime UserDataType == void) {
- @call(.always_inline, handler, .{ void{}, castRes(this), void{} });
+ @call(.always_inline, handler, .{ {}, castRes(this), {} });
} else {
@call(.always_inline, handler, .{ @ptrCast(UserDataType, @alignCast(@alignOf(UserDataType), user_data.?)), castRes(this) });
}
@@ -1440,7 +1440,7 @@ pub fn NewApp(comptime ssl: bool) type {
pub fn handle(this: *uws_res, chunk_ptr: [*c]const u8, len: usize, last: bool, user_data: ?*anyopaque) callconv(.C) void {
if (comptime UserDataType == void) {
@call(.always_inline, handler, .{
- void{},
+ {},
castRes(this),
if (len > 0) chunk_ptr[0..len] else "",
last,
@@ -1493,7 +1493,7 @@ pub fn NewApp(comptime ssl: bool) type {
pub fn handle(user_data: ?*anyopaque) callconv(.C) void {
if (comptime UserDataType == void) {
@call(.always_inline, handler, .{
- void{},
+ {},
});
} else {
@call(.always_inline, handler, .{
@@ -1516,7 +1516,7 @@ pub fn NewApp(comptime ssl: bool) type {
// pub fn handle(user_data: ?*anyopaque, fd: i32) callconv(.C) void {
// if (comptime UserDataType == void) {
// @call(.always_inline, handler, .{
- // void{},
+ // {},
// fd,
// });
// } else {
@@ -1535,7 +1535,7 @@ pub fn NewApp(comptime ssl: bool) type {
// pub fn handle(socket: *Socket) callconv(.C) ?*Socket {
// if (comptime UserDataType == void) {
// @call(.always_inline, handler, .{
- // void{},
+ // {},
// fd,
// });
// } else {