Skip to content

Commit

Permalink
refactor(cli): apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jan 21, 2024
1 parent 4b78daa commit daf7f97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1356,10 +1356,10 @@ fn explicit_desc_or_dir_toolchain_old<'a>(cfg: &'a Cfg, m: &ArgMatches) -> Resul
explicit_or_dir_toolchain2(cfg, toolchain)
}

fn explicit_desc_or_dir_toolchain<'a>(
cfg: &'a Cfg,
fn explicit_desc_or_dir_toolchain(
cfg: &Cfg,
toolchain: Option<PartialToolchainDesc>,
) -> Result<Toolchain<'a>> {
) -> Result<Toolchain<'_>> {
explicit_or_dir_toolchain2(cfg, toolchain.map(|it| (&it).into()))
}

Expand Down

0 comments on commit daf7f97

Please sign in to comment.