Skip to content

Commit

Permalink
[ci] fix compilation on rust nightly
Browse files Browse the repository at this point in the history
Nightly Rust has started warning about unused fields in enum variants.
  • Loading branch information
sunshowers committed Jan 8, 2024
1 parent 8b13934 commit 59a4210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextest-runner/src/reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 59a4210

Please sign in to comment.