From 3f556fde3e815901aeedaa40a774c8e6032fc0b4 Mon Sep 17 00:00:00 2001 From: rami3l Date: Mon, 18 Mar 2024 13:37:40 +0800 Subject: [PATCH] refactor(self-update): rename `UPDATE_ROOT` to `DEFAULT_UPDATE_ROOT` --- src/cli/self_update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/self_update.rs b/src/cli/self_update.rs index d5295cd95e..f15bfcf487 100644 --- a/src/cli/self_update.rs +++ b/src/cli/self_update.rs @@ -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