Skip to content

Commit 17469c7

Browse files
committed
more simplification of returned results
1 parent 636da32 commit 17469c7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/toolchains.rs

+1-4
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> {
@@ -305,7 +303,6 @@ impl Toolchain {
305303

306304
let dir = dl_params.install_dir.join(rustup_name);
307305
fs::remove_dir_all(&dir)?;
308-
309306
Ok(())
310307
}
311308

0 commit comments

Comments
 (0)