Skip to content

Commit 4311180

Browse files
branchseerclaude
andcommitted
fix clippy warnings in test harnesses
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 608e062 commit 4311180

File tree

2 files changed

+9
-3
lines changed
  • crates
    • vite_task_bin/tests/e2e_snapshots
    • vite_task_plan/tests/plan_snapshots

2 files changed

+9
-3
lines changed

crates/vite_task_bin/tests/e2e_snapshots/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,5 +488,8 @@ fn main() {
488488
for case_path in &fixture_paths {
489489
run_case(&tmp_dir_path, case_path, filter.as_deref());
490490
}
491-
println!("All cases passed.");
491+
#[expect(clippy::print_stdout, reason = "test summary")]
492+
{
493+
println!("All cases passed.");
494+
}
492495
}

crates/vite_task_plan/tests/plan_snapshots/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,11 @@ fn main() {
317317
let tests_dir = std::env::current_dir().unwrap().join("tests");
318318

319319
insta::glob!(tests_dir, "plan_snapshots/fixtures/*", |case_path| {
320-
run_case(&tokio_runtime, &tmp_dir_path, case_path, filter.as_deref())
320+
run_case(&tokio_runtime, &tmp_dir_path, case_path, filter.as_deref());
321321
});
322322

323-
println!("All cases passed.");
323+
#[expect(clippy::print_stdout, reason = "test summary")]
324+
{
325+
println!("All cases passed.");
326+
}
324327
}

0 commit comments

Comments
 (0)