Skip to content

Commit

Permalink
Apply Clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l authored May 4, 2024
1 parent ec430bd commit 0ed4b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ fn show(cfg: &Cfg, m: &ArgMatches) -> Result<utils::ExitCode> {
)?;
writeln!(t.lock(), "name: {}", active_toolchain.name())?;
writeln!(t.lock(), "compiler: {}", active_toolchain.rustc_version())?;
writeln!(t.lock(), "active because: {}", active_reason.to_string())?;
writeln!(t.lock(), "active because: {}", active_reason)?;

// show installed targets for the active toolchain
writeln!(t.lock(), "installed targets:")?;
Expand Down Expand Up @@ -1214,7 +1214,7 @@ fn show_active_toolchain(cfg: &Cfg, m: &ArgMatches) -> Result<utils::ExitCode> {
let cwd = utils::current_dir()?;
match cfg.find_active_toolchain(&cwd)? {
Some((toolchain_name, reason)) => {
let toolchain = new_toolchain_with_reason(cfg, toolchain_name.clone().into(), &reason)?;
let toolchain = new_toolchain_with_reason(cfg, toolchain_name.clone(), &reason)?;
writeln!(
process().stdout().lock(),
"{}\nactive because: {}",
Expand Down

0 comments on commit 0ed4b4a

Please sign in to comment.