Skip to content

Commit 701b8b3

Browse files
refactor: replace allow(…) with expect(…)
1 parent 5dcfd3e commit 701b8b3

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ fn run(cli: Cli) -> ExitCode {
415415
Subcommand::Triage { on_zero_item } => {
416416
#[derive(Debug)]
417417
struct TaggedTest {
418-
#[allow(unused)]
418+
#[expect(unused)]
419419
orig_path: Arc<PathBuf>,
420420
inner: Test,
421421
}

moz-webgpu-cts/src/process_reports.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ pub(crate) struct ProcessReportsArgs<'a> {
6060
}
6161

6262
#[derive(Clone, Copy, Debug)]
63-
#[allow(clippy::enum_variant_names)]
6463
pub(crate) enum ReportProcessingPreset {
6564
ResetContradictoryOutcomes,
6665
MergeOutcomes,
@@ -108,7 +107,7 @@ fn accumulate<Out>(
108107
///
109108
/// For subtests, `parent_implementation_status` should be specified so the
110109
/// parent test's implementation status can be used for filtering.
111-
#[allow(clippy::type_complexity)]
110+
#[expect(clippy::type_complexity)]
112111
fn reconcile<Out>(
113112
meta_props: &mut TestProps<Out>,
114113
reported: NonNormalizedPropertyValue<Expected<Out>>,

moz-webgpu-cts/src/wpt/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl metadata::File<'_> for File {
6464
#[derive(Clone, Debug, Default, Serialize)]
6565
pub struct FileProps {
6666
pub is_disabled: Option<PropertyValue<Expr<Value<'static>>, String>>,
67-
#[allow(clippy::type_complexity)]
67+
#[expect(clippy::type_complexity)]
6868
pub prefs: Option<PropertyValue<Expr<Value<'static>>, Vec<(String, String)>>>,
6969
pub tags: Option<PropertyValue<Expr<Value<'static>>, Vec<String>>>,
7070
pub implementation_status: Option<PropertyValue<Expr<Value<'static>>, ImplementationStatus>>,

0 commit comments

Comments
 (0)