Skip to content

Commit cd1a769

Browse files
committed
Simplify a match
1 parent ab90877 commit cd1a769

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/ui.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,8 @@ fn miri_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
106106
.map(Spanned::dummy)
107107
.into();
108108

109-
config.comment_defaults.base().require_annotations = Spanned::dummy(match mode {
110-
Mode::Pass => false,
111-
Mode::Fail => true,
112-
Mode::RunDep => false,
113-
Mode::Panic => false,
114-
})
115-
.into();
109+
config.comment_defaults.base().require_annotations =
110+
Spanned::dummy(matches!(mode, Mode::Fail)).into();
116111

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

0 commit comments

Comments
 (0)