Skip to content

Commit 75e67ee

Browse files
committed
Real metrics
1 parent cdddd20 commit 75e67ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xtask/src/metrics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pub fn run_metrics() -> Result<()> {
1818

1919
{
2020
let _d = pushd("target");
21-
let api_token = env::var("METRICS_TOKEN").unwrap();
22-
let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", api_token);
21+
let metrics_token = env::var("METRICS_TOKEN").unwrap();
22+
let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", metrics_token);
2323
run!("git clone --depth 1 {}", repo)?;
2424
let _d = pushd("metrics");
2525

@@ -39,7 +39,7 @@ impl Metrics {
3939
rm_rf("./target/release")?;
4040

4141
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")?;
4343
let build = build.elapsed();
4444
self.report("build", build.as_millis() as u64, "ms");
4545
Ok(())

0 commit comments

Comments
 (0)