aboutsummaryrefslogtreecommitdiff
path: root/mling/src/project_installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mling/src/project_installer.rs')
-rw-r--r--mling/src/project_installer.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/mling/src/project_installer.rs b/mling/src/project_installer.rs
index d004e40..5c21462 100644
--- a/mling/src/project_installer.rs
+++ b/mling/src/project_installer.rs
@@ -44,8 +44,7 @@ pub fn install_this_project(
.current_dir(workspace_root)
.status()?;
if !status.success() {
- return Err(std::io::Error::new(
- std::io::ErrorKind::Other,
+ return Err(std::io::Error::other(
"exec `cargo clean` failed",
));
}
@@ -57,8 +56,7 @@ pub fn install_this_project(
.current_dir(workspace_root)
.status()?;
if !status.success() {
- return Err(std::io::Error::new(
- std::io::ErrorKind::Other,
+ return Err(std::io::Error::other(
"cargo build --release failed",
));
}