From f347b4653091394ae72988c3738b9e34737e67a5 Mon Sep 17 00:00:00 2001 From: eupn Date: Sun, 5 Mar 2023 13:59:16 +0400 Subject: [PATCH] xtask: unify stdlib url constant naming --- xtask/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtask/src/utils.rs b/xtask/src/utils.rs index fb5042e54..8b19d841b 100644 --- a/xtask/src/utils.rs +++ b/xtask/src/utils.rs @@ -10,13 +10,13 @@ use std::{ use crate::{cargo, project_root}; use crate::{TARGET_TRIPLE_RISCV32, TARGET_TRIPLE_ARM}; -const TOOLCHAIN_RELEASE_URL: &str = "https://api.github.com/repos/betrusted-io/rust/releases"; +const TOOLCHAIN_RELEASE_URL_RISCV32: &str = "https://api.github.com/repos/betrusted-io/rust/releases"; const TOOLCHAIN_RELEASE_URL_ARM: &str = "https://api.github.com/repos/Foundation-Devices/rust/releases"; lazy_static! { static ref TOOLCHAIN_RELEASE_URLS: HashMap = HashMap::from([ - (TARGET_TRIPLE_RISCV32.to_owned(), TOOLCHAIN_RELEASE_URL.to_owned()), + (TARGET_TRIPLE_RISCV32.to_owned(), TOOLCHAIN_RELEASE_URL_RISCV32.to_owned()), ( TARGET_TRIPLE_ARM.to_owned(), TOOLCHAIN_RELEASE_URL_ARM.to_owned()