Skip to content

Commit

Permalink
refactor(self-update): rename UPDATE_ROOT to DEFAULT_UPDATE_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Apr 15, 2024
1 parent ab5d84e commit 3f556fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,12 @@ These components can be acquired through a Visual Studio installer.
"#;

static UPDATE_ROOT: &str = "https://static.rust-lang.org/rustup";
static DEFAULT_UPDATE_ROOT: &str = "https://static.rust-lang.org/rustup";

fn update_root() -> String {
process()
.var("RUSTUP_UPDATE_ROOT")
.unwrap_or_else(|_| String::from(UPDATE_ROOT))
.unwrap_or_else(|_| String::from(DEFAULT_UPDATE_ROOT))
}

/// `CARGO_HOME` suitable for display, possibly with $HOME
Expand Down

0 comments on commit 3f556fd

Please sign in to comment.