diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-28 21:37:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-28 21:37:34 +0800 |
| commit | 5bf4209bd138faf76e3bd316fdfa128a08f2bb2e (patch) | |
| tree | 8b8accd12c5831360f8c609a3c019373dc4db7d4 /mling/src/project_installer.rs | |
| parent | 94ac5ec454ef9fa687857b8d4323d0269bddb3c2 (diff) | |
Apply clippy suggestions for code simplification
Diffstat (limited to 'mling/src/project_installer.rs')
| -rw-r--r-- | mling/src/project_installer.rs | 6 |
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", )); } |
