diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/metrics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index 4c8249b8e..9567f18f0 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs | |||
@@ -18,8 +18,8 @@ pub fn run_metrics() -> Result<()> { | |||
18 | 18 | ||
19 | { | 19 | { |
20 | let _d = pushd("target"); | 20 | let _d = pushd("target"); |
21 | let api_token = env::var("METRICS_TOKEN").unwrap(); | 21 | let metrics_token = env::var("METRICS_TOKEN").unwrap(); |
22 | let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", api_token); | 22 | let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", metrics_token); |
23 | run!("git clone --depth 1 {}", repo)?; | 23 | run!("git clone --depth 1 {}", repo)?; |
24 | let _d = pushd("metrics"); | 24 | let _d = pushd("metrics"); |
25 | 25 | ||
@@ -39,7 +39,7 @@ impl Metrics { | |||
39 | rm_rf("./target/release")?; | 39 | rm_rf("./target/release")?; |
40 | 40 | ||
41 | let build = Instant::now(); | 41 | let build = Instant::now(); |
42 | // run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?; | 42 | run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?; |
43 | let build = build.elapsed(); | 43 | let build = build.elapsed(); |
44 | self.report("build", build.as_millis() as u64, "ms"); | 44 | self.report("build", build.as_millis() as u64, "ms"); |
45 | Ok(()) | 45 | Ok(()) |