Skip to content

Commit 338af13

Browse files
committed
more simplification of returned results
1 parent 636da32 commit 338af13

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/toolchains.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ impl Toolchain {
281281
.map_err(InstallError::Download)?;
282282
}
283283

284-
fs::rename(tmpdir.into_path(), dest).map_err(InstallError::Move)?;
285-
286-
Ok(())
284+
fs::rename(tmpdir.into_path(), dest).map_err(InstallError::Move)
287285
}
288286

289287
pub(crate) fn remove(&self, dl_params: &DownloadParams) -> Result<(), Error> {
@@ -304,9 +302,7 @@ impl Toolchain {
304302
);
305303

306304
let dir = dl_params.install_dir.join(rustup_name);
307-
fs::remove_dir_all(&dir)?;
308-
309-
Ok(())
305+
fs::remove_dir_all(&dir)
310306
}
311307

312308
pub(crate) fn run_test(&self, cfg: &Config) -> process::Output {

0 commit comments

Comments
 (0)