mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-29 13:50: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()?;
|
||||
|
||||
#[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)]
|
||||
let path = format!("{}:{}", std::env::var("PATH").unwrap(), get_cargo_home().join("bin").display());
|
||||
|
||||
std::env::set_var("PATH", path.clone());
|
||||
warn!("{} Please restart your terminal after the installation for the changes to take effect.", emoji::WARN);
|
||||
let path = format!(
|
||||
"{}:{}",
|
||||
std::env::var("PATH").unwrap(),
|
||||
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(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user