diff options
author | 2023-04-09 05:39:05 -0700 | |
---|---|---|
committer | 2023-04-09 05:39:05 -0700 | |
commit | 7bd6a1f86d99c1374cb1eb15ff263dc352a8837b (patch) | |
tree | 6b7646d6bf34ca83844f713b3be671dc71a40b37 /src/resolver/package_json.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/resolver/package_json.zig')
-rw-r--r-- | src/resolver/package_json.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resolver/package_json.zig b/src/resolver/package_json.zig index f7ff5f3e4..6cfe759ef 100644 --- a/src/resolver/package_json.zig +++ b/src/resolver/package_json.zig @@ -1043,7 +1043,7 @@ pub const ExportsMap = struct { switch (expr.data) { .e_null => { - return Entry{ .first_token = js_lexer.rangeOfIdentifier(this.source, expr.loc), .data = .{ .null = void{} } }; + return Entry{ .first_token = js_lexer.rangeOfIdentifier(this.source, expr.loc), .data = .{ .null = {} } }; }, .e_string => |str| { return Entry{ @@ -1103,7 +1103,7 @@ pub const ExportsMap = struct { map_data.deinit(this.allocator); this.allocator.free(expansion_keys); return Entry{ - .data = .{ .invalid = void{} }, + .data = .{ .invalid = {} }, .first_token = first_token, }; } @@ -1157,7 +1157,7 @@ pub const ExportsMap = struct { this.log.addRangeWarning(this.source, first_token, "This value must be a string, an object, an array, or null") catch unreachable; return Entry{ - .data = .{ .invalid = void{} }, + .data = .{ .invalid = {} }, .first_token = first_token, }; } @@ -1509,7 +1509,7 @@ pub const ESModule = struct { } if (strings.eqlComptime(subpath, ".")) { - var main_export = ExportsMap.Entry{ .data = .{ .null = void{} }, .first_token = logger.Range.None }; + var main_export = ExportsMap.Entry{ .data = .{ .null = {} }, .first_token = logger.Range.None }; if (switch (exports.data) { .string, .array, |