From 75e67ee74e5d3db5363732bb793b872c57408013 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Jul 2020 21:07:58 +0200 Subject: [PATCH] Real metrics --- xtask/src/metrics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index 4c8249b8ef..9567f18f0a 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs @@ -18,8 +18,8 @@ pub fn run_metrics() -> Result<()> { { let _d = pushd("target"); - let api_token = env::var("METRICS_TOKEN").unwrap(); - let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", api_token); + let metrics_token = env::var("METRICS_TOKEN").unwrap(); + let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", metrics_token); run!("git clone --depth 1 {}", repo)?; let _d = pushd("metrics"); @@ -39,7 +39,7 @@ impl Metrics { rm_rf("./target/release")?; let build = Instant::now(); - // run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?; + run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?; let build = build.elapsed(); self.report("build", build.as_millis() as u64, "ms"); Ok(())