Commit b88f86f
committed
Ignore single_element_loop clippy lint in test
warning: for loop over a single element
--> tests/test_expr.rs:333:5
|
333 | / for stmt in [
334 | | // Parentheses required. See rust-lang/rust#87026.
335 | | quote! {
336 | | break 'label: loop { break 'label 42; };
... |
339 | | syn::parse2::<Stmt>(stmt).unwrap_err();
340 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
= note: `-W clippy::single-element-loop` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::single_element_loop)]`
help: try
|
333 ~ {
334 + let stmt = {
335 + let mut _s = $crate::__private::TokenStream::new();
336 + $crate::quote_each_token!{_s $($tt)*}
337 + _s
338 + };
339 + syn::parse2::<Stmt>(stmt).unwrap_err();
340 + }
|1 parent a876185 commit b88f86f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments