Skip to content

Commit 94e0dfe

Browse files
committed
use io::Result alias
1 parent d63dcfe commit 94e0dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/toolchains.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl Toolchain {
208208
fs::rename(tmpdir.into_path(), dest).map_err(InstallError::Move)
209209
}
210210

211-
pub(crate) fn remove(&self, dl_params: &DownloadParams) -> Result<(), io::Error> {
211+
pub(crate) fn remove(&self, dl_params: &DownloadParams) -> io::Result<()> {
212212
eprintln!("uninstalling {}", self);
213213
self.do_remove(dl_params)
214214
}
@@ -217,7 +217,7 @@ impl Toolchain {
217217
///
218218
/// The main reason to call this (instead of `fs::remove_dir_all` directly)
219219
/// is to guard against deleting state not managed by `cargo-bisect-rustc`.
220-
fn do_remove(&self, dl_params: &DownloadParams) -> Result<(), io::Error> {
220+
fn do_remove(&self, dl_params: &DownloadParams) -> io::Result<()> {
221221
let rustup_name = self.rustup_name();
222222

223223
// Guard against destroying directories that this tool didn't create.

0 commit comments

Comments
 (0)