Skip to content

Commit 5505d36

Browse files
committed
Fix header warning assertion
This commit fixes the [types removal] warning headers removal in #120 to filter to those that don't start with [types removal] **and** are not in allowed_warnings.
1 parent 04d5648 commit 5505d36

File tree

1 file changed

+1
-1
lines changed
  • yaml_test_runner/src/step

1 file changed

+1
-1
lines changed

yaml_test_runner/src/step/do.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl Do {
110110
tokens.append(quote! {
111111
let allowed_warnings = vec![#(#allowed),*];
112112
let warnings: Vec<&str> = response.warning_headers()
113-
.filter(|w| !w.starts_with("[types removal]") || !allowed_warnings.iter().any(|a| w.contains(a)))
113+
.filter(|w| !w.starts_with("[types removal]") && !allowed_warnings.iter().any(|a| w.contains(a)))
114114
.collect();
115115
assert_warnings_is_empty!(warnings);
116116
});

0 commit comments

Comments
 (0)