Skip to content

Commit e6bcb77

Browse files
committed
Ignore buggy collapsible_match clippy lint
rust-lang/rust-clippy#7575 error: unnecessary nested `if let` or `match` --> src/generics.rs:1190:33 | 1190 | / ... if let TokenTree::Punct(q) = token { 1191 | | ... if q.as_char() == '?' { 1192 | | ... if let Some(TokenTree::Ident(c)) = iter.peek() { 1193 | | ... if c == "const" { ... | 1201 | | ... } 1202 | | ... } | |_______________________^ | = note: `-D clippy::collapsible-match` implied by `-D clippy::all` help: the outer pattern can be modified to include the inner pattern --> src/generics.rs:1189:44 | 1189 | ... while let Some(token) = iter.next() { | ^^^^^ replace this binding 1190 | ... if let TokenTree::Punct(q) = token { | ^^^^^^^^^^^^^^^^^^^ with this pattern = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
1 parent 974a0a7 commit e6bcb77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@
255255
#![allow(non_camel_case_types)]
256256
// Ignored clippy lints.
257257
#![allow(
258+
clippy::collapsible_match, // https://github.com/rust-lang/rust-clippy/issues/7575
258259
clippy::doc_markdown,
259260
clippy::eval_order_dependence,
260261
clippy::inherent_to_string,

0 commit comments

Comments
 (0)