diff --git a/src/worker/run.rs b/src/worker/run.rs index 4f8d20b..42eb6f3 100644 --- a/src/worker/run.rs +++ b/src/worker/run.rs @@ -11,7 +11,6 @@ use tracing::error; use crate::{ config::WorkerServerConfig, shared::{BenchMethod, FinishedRun, Measurement, Run, Source, UnfinishedRun}, - somehow, }; use super::server::Server; diff --git a/src/worker/run/internal.rs b/src/worker/run/internal.rs index bedf9b6..5a9edbd 100644 --- a/src/worker/run/internal.rs +++ b/src/worker/run/internal.rs @@ -29,7 +29,7 @@ struct Counts { todos_by_dir: HashMap, } -fn count(run: &RunInProgress, path: &Path) -> somehow::Result { +fn count(path: &Path) -> somehow::Result { let todo_regex = RegexBuilder::new(r"[^a-z]todo[^a-z]") .case_insensitive(true) .build() @@ -174,10 +174,9 @@ impl RunInProgress { &self, server: &Server, ) -> somehow::Result> { - let run = self.clone(); let dir = server.download_repo(&self.run.hash).await?; let path = dir.path().to_path_buf(); - let counts = tokio::task::spawn_blocking(move || count(&run, &path)).await??; + let counts = tokio::task::spawn_blocking(move || count(&path)).await??; Ok(Some(Finished { exit_code: 0, measurements: measurements(counts),