diff options
author | 2023-04-09 05:39:05 -0700 | |
---|---|---|
committer | 2023-04-09 05:39:05 -0700 | |
commit | 7bd6a1f86d99c1374cb1eb15ff263dc352a8837b (patch) | |
tree | 6b7646d6bf34ca83844f713b3be671dc71a40b37 /src/io/io_darwin.zig | |
parent | 1e717dd941090b5c52f36445f3a53d41e1bc7894 (diff) | |
download | bun-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/io/io_darwin.zig')
-rw-r--r-- | src/io/io_darwin.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io/io_darwin.zig b/src/io/io_darwin.zig index d9c597735..e0a48c0e9 100644 --- a/src/io/io_darwin.zig +++ b/src/io/io_darwin.zig @@ -334,7 +334,7 @@ pub const OpenError = error{ pub const Syscall = struct { pub fn close(fd: std.os.fd_t) CloseError!void { return switch (darwin.getErrno(darwin.@"close$NOCANCEL"(fd))) { - .SUCCESS => void{}, + .SUCCESS => {}, .BADF => error.FileDescriptorInvalid, .IO => error.InputOutput, else => |err| asError(err), @@ -1203,7 +1203,7 @@ pub fn connect( assert(size == 4); break :brk switch (darwin.getErrno(rc)) { .SUCCESS => switch (@intToEnum(os.E, err_code)) { - .SUCCESS => void{}, + .SUCCESS => {}, .ACCES => error.PermissionDenied, .PERM => error.PermissionDenied, .ADDRINUSE => error.AddressInUse, @@ -1225,7 +1225,7 @@ pub fn connect( }; }, else => switch (darwin.getErrno(darwin.@"connect$NOCANCEL"(op.socket, &op.address.any, op.address.getOsSockLen()))) { - .SUCCESS => void{}, + .SUCCESS => {}, .ACCES => error.PermissionDenied, .PERM => error.PermissionDenied, .ADDRINUSE => error.AddressInUse, |