From 59a42103061cf75cc28c1e416b0189f9c6cb1471 Mon Sep 17 00:00:00 2001 From: Rain Date: Sun, 7 Jan 2024 16:59:53 -0800 Subject: [PATCH] [ci] fix compilation on rust nightly Nightly Rust has started warning about unused fields in enum variants. --- nextest-runner/src/reporter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextest-runner/src/reporter.rs b/nextest-runner/src/reporter.rs index 17e7a7a22a6..b1e3a5f6bb2 100644 --- a/nextest-runner/src/reporter.rs +++ b/nextest-runner/src/reporter.rs @@ -444,7 +444,7 @@ fn update_progress_bar(event: &TestEvent<'_>, styles: &Styles, progress_bar: &Pr #[derive(Copy, Clone, Debug)] enum RunningState<'a> { Running(&'a RunStats), - Canceling(CancelReason), + Canceling(#[allow(dead_code)] CancelReason), } impl<'a> RunningState<'a> { @@ -553,7 +553,7 @@ fn write_summary_str(run_stats: &RunStats, styles: &Styles, out: &mut String) -> #[derive(Debug)] enum FinalOutput { - Skipped(MismatchReason), + Skipped(#[allow(dead_code)] MismatchReason), Executed { run_statuses: ExecutionStatuses, test_output_display: TestOutputDisplay,