Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 + } |
- Loading branch information