Skip to content

Commit e27f5f3

Browse files
committed
fix(rustup-mode): refine output for rustup --version
1 parent 63d4ba2 commit e27f5f3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/cli/rustup_mode.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,12 +548,9 @@ pub async fn main(current_dir: PathBuf, process: &Process) -> Result<utils::Exit
548548
info!("This is the version for the rustup toolchain manager, not the rustc compiler.");
549549
let mut cfg = common::set_globals(current_dir, false, true, process)?;
550550
match cfg.active_rustc_version() {
551-
Ok(Some(version)) => info!("The currently active `rustc` version is `{}`", version),
551+
Ok(Some(version)) => info!("The currently active `rustc` version is `{version}`"),
552552
Ok(None) => info!("No `rustc` is currently active"),
553-
Err(err) => trace!(
554-
"Wanted to tell you the current rustc version, too, but ran into this error: {}",
555-
err
556-
),
553+
Err(err) => trace!("Failed to display the current `rustc` version: {err}"),
557554
}
558555
return Ok(utils::ExitCode(0));
559556
}

0 commit comments

Comments
 (0)