Skip to content

Commit

Permalink
feat(fmt): apply timeout tainting
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Apr 15, 2024
1 parent c874bdb commit fcfcba9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion moz-webgpu-cts/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,17 @@ fn run(cli: Cli) -> ExitCode {
fmt_err_found = true;
render_metadata_parse_errors(&path, &file_contents, errors);
}
Ok(file) => {
Ok(mut file) => {
for (_name, test) in &mut file.tests {

Check failure on line 804 in moz-webgpu-cts/src/main.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

you seem to want to iterate on a map's values

Check failure on line 804 in moz-webgpu-cts/src/main.rs

View workflow job for this annotation

GitHub Actions / Clippy (beta)

you seem to want to iterate on a map's values
for (_name, subtest) in &mut test.subtests {

Check failure on line 805 in moz-webgpu-cts/src/main.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

you seem to want to iterate on a map's values

Check failure on line 805 in moz-webgpu-cts/src/main.rs

View workflow job for this annotation

GitHub Actions / Clippy (beta)

you seem to want to iterate on a map's values
if let Some(expected) = subtest.properties.expectations.as_mut() {
for (_, expected) in expected.iter_mut() {
taint_subtest_timeouts_by_suspicion(expected);
}
}
}
}

match write_to_file(&path, metadata::format_file(&file)) {
Ok(()) => (),
Err(AlreadyReportedToCommandline) => {
Expand Down

0 comments on commit fcfcba9

Please sign in to comment.