mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 07:10:36 +00:00
chore: ⚡️ Format and clippy warnings
This commit is contained in:
parent
3ef810dba7
commit
bbcf67141e
@ -359,13 +359,23 @@ fn install_rustup(nightly_version: &str) -> Result<()> {
|
|||||||
.run()?;
|
.run()?;
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
let path = format!("{};{}", std::env::var("PATH").unwrap(), get_cargo_home().join("bin").display());
|
let path = format!(
|
||||||
|
"{};{}",
|
||||||
|
std::env::var("PATH").unwrap(),
|
||||||
|
get_cargo_home().join("bin").display()
|
||||||
|
);
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
let path = format!("{}:{}", std::env::var("PATH").unwrap(), get_cargo_home().join("bin").display());
|
let path = format!(
|
||||||
|
"{}:{}",
|
||||||
std::env::set_var("PATH", path.clone());
|
std::env::var("PATH").unwrap(),
|
||||||
warn!("{} Please restart your terminal after the installation for the changes to take effect.", emoji::WARN);
|
get_cargo_home().join("bin").display()
|
||||||
|
);
|
||||||
|
|
||||||
|
std::env::set_var("PATH", path);
|
||||||
|
warn!(
|
||||||
|
"{} Please restart your terminal after the installation for the changes to take effect.",
|
||||||
|
emoji::WARN
|
||||||
|
);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user