Skip to content

Commit 9a40e4c

Browse files
committed
style: fix CI — apply rustfmt formatting
1 parent aa62fc2 commit 9a40e4c

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

src/executor.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ impl Executor {
102102
let start = std::time::Instant::now();
103103
metrics.start_batch();
104104

105-
let result =
106-
run_batch(&config, &batch, archive, concurrent_limit).await;
105+
let result = run_batch(&config, &batch, archive, concurrent_limit).await;
107106
let duration_ms = start.elapsed().as_millis() as u64;
108107

109108
let mut res = batch.result.lock().await;
@@ -269,7 +268,15 @@ async fn run_single_task(
269268
return result;
270269
}
271270

272-
let eval_result = run_task_pipeline(config, task, agent_code, agent_language, &work_dir, &cancel_rx).await;
271+
let eval_result = run_task_pipeline(
272+
config,
273+
task,
274+
agent_code,
275+
agent_language,
276+
&work_dir,
277+
&cancel_rx,
278+
)
279+
.await;
273280

274281
crate::cleanup::remove_work_dir(&work_dir).await;
275282

@@ -365,8 +372,7 @@ async fn run_task_pipeline(
365372
}
366373

367374
result.status = TaskStatus::RunningTests;
368-
let test_results =
369-
run_tests(&task.test_scripts, &repo_dir, config.test_timeout_secs).await?;
375+
let test_results = run_tests(&task.test_scripts, &repo_dir, config.test_timeout_secs).await?;
370376

371377
let all_passed = test_results.iter().all(|t| t.passed);
372378
let test_output_combined = test_results

src/handlers.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,7 @@ async fn submit_batch(
182182
let batch = state.sessions.create_batch(total_tasks);
183183
let batch_id = batch.id.clone();
184184

185-
state
186-
.executor
187-
.spawn_batch(batch, extracted, concurrent);
185+
state.executor.spawn_batch(batch, extracted, concurrent);
188186

189187
Ok((
190188
StatusCode::ACCEPTED,

src/task.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ fn load_agent_code(root: &Path) -> Result<String> {
132132
if files.len() == 1 {
133133
agent_content = content;
134134
} else {
135-
agent_content.push_str(&format!("# --- {} ---\n", entry.file_name().to_string_lossy()));
135+
agent_content.push_str(&format!(
136+
"# --- {} ---\n",
137+
entry.file_name().to_string_lossy()
138+
));
136139
agent_content.push_str(&content);
137140
agent_content.push('\n');
138141
}
@@ -191,11 +194,7 @@ fn load_tasks(root: &Path) -> Result<Vec<SweForgeTask>> {
191194
match parse_task(&task_dir) {
192195
Ok(task) => tasks.push(task),
193196
Err(e) => {
194-
tracing::warn!(
195-
"Skipping task dir {}: {}",
196-
task_dir.display(),
197-
e
198-
);
197+
tracing::warn!("Skipping task dir {}: {}", task_dir.display(), e);
199198
}
200199
}
201200
}

0 commit comments

Comments
 (0)