From 01fe930367c94d47083669c7a8cd76e3349bd4dd Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Sun, 30 Mar 2025 00:09:10 -0400 Subject: [PATCH] =?UTF-8?q?refactor:=20replace=20`allow(=E2=80=A6)`=20with?= =?UTF-8?q?=20`expect(=E2=80=A6)`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- moz-webgpu-cts/src/main.rs | 2 +- moz-webgpu-cts/src/process_reports.rs | 3 +-- moz-webgpu-cts/src/wpt/metadata.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/moz-webgpu-cts/src/main.rs b/moz-webgpu-cts/src/main.rs index a37dbeeb..14649d56 100644 --- a/moz-webgpu-cts/src/main.rs +++ b/moz-webgpu-cts/src/main.rs @@ -415,7 +415,7 @@ fn run(cli: Cli) -> ExitCode { Subcommand::Triage { on_zero_item } => { #[derive(Debug)] struct TaggedTest { - #[allow(unused)] + #[expect(unused)] orig_path: Arc, inner: Test, } diff --git a/moz-webgpu-cts/src/process_reports.rs b/moz-webgpu-cts/src/process_reports.rs index 67abc54b..94695d23 100644 --- a/moz-webgpu-cts/src/process_reports.rs +++ b/moz-webgpu-cts/src/process_reports.rs @@ -60,7 +60,6 @@ pub(crate) struct ProcessReportsArgs<'a> { } #[derive(Clone, Copy, Debug)] -#[allow(clippy::enum_variant_names)] pub(crate) enum ReportProcessingPreset { ResetContradictoryOutcomes, MergeOutcomes, @@ -108,7 +107,7 @@ fn accumulate( /// /// For subtests, `parent_implementation_status` should be specified so the /// parent test's implementation status can be used for filtering. -#[allow(clippy::type_complexity)] +#[expect(clippy::type_complexity)] fn reconcile( meta_props: &mut TestProps, reported: NonNormalizedPropertyValue>, diff --git a/moz-webgpu-cts/src/wpt/metadata.rs b/moz-webgpu-cts/src/wpt/metadata.rs index 9ba216a9..044904b8 100644 --- a/moz-webgpu-cts/src/wpt/metadata.rs +++ b/moz-webgpu-cts/src/wpt/metadata.rs @@ -64,7 +64,7 @@ impl metadata::File<'_> for File { #[derive(Clone, Debug, Default, Serialize)] pub struct FileProps { pub is_disabled: Option>, String>>, - #[allow(clippy::type_complexity)] + #[expect(clippy::type_complexity)] pub prefs: Option>, Vec<(String, String)>>>, pub tags: Option>, Vec>>, pub implementation_status: Option>, ImplementationStatus>>,