Skip to content

Commit

Permalink
Simplify a match
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Sep 16, 2024
1 parent ab90877 commit cd1a769
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,8 @@ fn miri_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
.map(Spanned::dummy)
.into();

config.comment_defaults.base().require_annotations = Spanned::dummy(match mode {
Mode::Pass => false,
Mode::Fail => true,
Mode::RunDep => false,
Mode::Panic => false,
})
.into();
config.comment_defaults.base().require_annotations =
Spanned::dummy(matches!(mode, Mode::Fail)).into();

config.comment_defaults.base().normalize_stderr =
stderr_filters().iter().map(|(m, p)| (m.clone(), p.to_vec())).collect();
Expand Down

0 comments on commit cd1a769

Please sign in to comment.