Skip to content

Commit 5da8641

Browse files
refactor: remove ref. from prop arg. of write_normalized
1 parent 07b3d29 commit 5da8641

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ where
795795
f: &mut Formatter<'_>,
796796
indent: &dyn Display,
797797
ident: &str,
798-
prop: &ExpandedPropertyValue<T>,
798+
prop: ExpandedPropertyValue<T>,
799799
) -> fmt::Result
800800
where
801801
T: Clone + Default + Display + Eq,
@@ -817,7 +817,7 @@ where
817817
BuildProfile::Debug => "debug",
818818
BuildProfile::Optimized => "not debug",
819819
};
820-
let normalized = NormalizedPropertyValue::from_expanded(prop.clone());
820+
let normalized = NormalizedPropertyValue::from_expanded(prop);
821821
match normalized.inner() {
822822
MaybeCollapsed::Collapsed(t) => match t {
823823
MaybeCollapsed::Collapsed(t) => {
@@ -870,12 +870,12 @@ where
870870
f,
871871
&indent,
872872
ImplementationStatus::IDENT,
873-
implementation_status,
873+
*implementation_status,
874874
)?;
875875
}
876876

877877
if let Some(exps) = expected {
878-
write_normalized(f, &indent, EXPECTED_IDENT, exps)?;
878+
write_normalized(f, &indent, EXPECTED_IDENT, *exps)?;
879879
}
880880

881881
Ok(())

0 commit comments

Comments
 (0)