aboutsummaryrefslogtreecommitdiff
path: root/src/install/install.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/install/install.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/install/install.zig')
-rw-r--r--src/install/install.zig32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index 0ae273f79..94a984416 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -1053,7 +1053,7 @@ const PackageInstall = struct {
path,
0,
)) {
- 0 => void{},
+ 0 => {},
else => |errno| switch (std.os.errno(errno)) {
.OPNOTSUPP => return error.NotSupported,
.NOENT => return error.FileNotFound,
@@ -1087,7 +1087,7 @@ const PackageInstall = struct {
};
return Result{
- .success = void{},
+ .success = {},
};
}
@@ -1111,7 +1111,7 @@ const PackageInstall = struct {
this.destination_dir_subpath,
0,
)) {
- 0 => .{ .success = void{} },
+ 0 => .{ .success = {} },
else => |errno| switch (std.os.errno(errno)) {
.OPNOTSUPP => error.NotSupported,
.NOENT => error.FileNotFound,
@@ -1198,7 +1198,7 @@ const PackageInstall = struct {
};
return Result{
- .success = void{},
+ .success = {},
};
}
@@ -1259,7 +1259,7 @@ const PackageInstall = struct {
};
return Result{
- .success = void{},
+ .success = {},
};
}
@@ -1354,7 +1354,7 @@ const PackageInstall = struct {
};
return Result{
- .success = void{},
+ .success = {},
};
}
@@ -1532,7 +1532,7 @@ const PackageInstall = struct {
}
if (supported_method_to_use != .copyfile) return Result{
- .success = void{},
+ .success = {},
};
// TODO: linux io_uring
@@ -6982,9 +6982,9 @@ pub const PackageManager = struct {
&installer,
.{
.onExtract = PackageInstaller.installEnqueuedPackages,
- .onResolve = void{},
- .onPackageManifestError = void{},
- .onPackageDownloadError = void{},
+ .onResolve = {},
+ .onPackageManifestError = {},
+ .onPackageDownloadError = {},
},
log_level,
);
@@ -7001,9 +7001,9 @@ pub const PackageManager = struct {
&installer,
.{
.onExtract = PackageInstaller.installEnqueuedPackages,
- .onResolve = void{},
- .onPackageManifestError = void{},
- .onPackageDownloadError = void{},
+ .onResolve = {},
+ .onPackageManifestError = {},
+ .onPackageDownloadError = {},
},
log_level,
);
@@ -7016,9 +7016,9 @@ pub const PackageManager = struct {
&installer,
.{
.onExtract = PackageInstaller.installEnqueuedPackages,
- .onResolve = void{},
- .onPackageManifestError = void{},
- .onPackageDownloadError = void{},
+ .onResolve = {},
+ .onPackageManifestError = {},
+ .onPackageDownloadError = {},
},
log_level,
);