Skip to content

Commit d6eb2c9

Browse files
committed
fix(rustup-mode): refine output for rustup --version
1 parent 1d59447 commit d6eb2c9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cli/rustup_mode.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,10 @@ 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"),
553553
Err(err) => trace!(
554-
"Wanted to tell you the current rustc version, too, but ran into this error: {}",
555-
err
554+
"Wanted to tell you the current `rustc` version, but ran into this error: {err}",
556555
),
557556
}
558557
return Ok(utils::ExitCode(0));

0 commit comments

Comments
 (0)