Skip to content

Commit 714b142

Browse files
fix: format!(…) the fmt. str. in Subtests::add_subtest 😅
1 parent 76b84db commit 714b142

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,10 @@ impl<'a> metadata::Subtests<'a> for Subtests {
677677
) {
678678
let Self(subtests) = self;
679679
if subtests.get(&name).is_some() {
680-
emitter.emit(Rich::custom(span, "duplicate subtest {name:?}"));
680+
emitter.emit(Rich::custom(
681+
span,
682+
format_args!("duplicate subtest {name:?}"),
683+
));
681684
}
682685
subtests.insert(name, subtest);
683686
}

0 commit comments

Comments
 (0)