Skip to content

Commit

Permalink
Merge pull request #156 from erichdongubler-mozilla/thanks-clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler authored Jan 15, 2025
2 parents 0288eda + de7e6c5 commit 5a55538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion moz-webgpu-cts/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl ExecReportSpec {
.filter(|diag| {
// N.B.: There should be at least one of these!
diag.severity()
.map_or(true, |sev| sev == miette::Severity::Error)
.is_none_or(|sev| sev == miette::Severity::Error)
})
.map(Report::new_boxed);
for report in error_reports {
Expand Down
6 changes: 3 additions & 3 deletions moz-webgpu-cts/src/wpt/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ impl<'a> metadata::Tests<'a> for Tests {
) {
let Self(tests) = self;
if tests.get(&name).is_some() {
emitter.emit(Rich::custom(span, "duplicate test {name:?}"));
emitter.emit(Rich::custom(span, format!("duplicate test {name:?}")));
}
tests.insert(name, test);
}
Expand Down Expand Up @@ -984,8 +984,8 @@ where
platform,
build_profile,
} = applicability;
if platform.as_ref().map_or(true, |p2| *p2 == p)
&& build_profile.as_ref().map_or(true, |bp2| *bp2 == bp)
if platform.as_ref().is_none_or(|p2| *p2 == p)
&& build_profile.as_ref().is_none_or(|bp2| *bp2 == bp)
{
matched = Some(val.clone());
}
Expand Down

0 comments on commit 5a55538

Please sign in to comment.