Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb
clippy::complexity fixes filter_next needless_question_mark bind_instead_of_map manual_find derivable_impls map_identity redundant_slicing skip_while_next unnecessary_unwrap needless_bool r? `@compiler-errors`
This commit is contained in:
commit
a9005b6cc0
15 changed files with 26 additions and 54 deletions
|
@ -277,8 +277,7 @@ impl<'a> Parser<'a> {
|
|||
if let Some(arg) = args
|
||||
.iter()
|
||||
.rev()
|
||||
.skip_while(|arg| matches!(arg, AngleBracketedArg::Constraint(_)))
|
||||
.next()
|
||||
.find(|arg| !matches!(arg, AngleBracketedArg::Constraint(_)))
|
||||
{
|
||||
err.span_suggestion_verbose(
|
||||
arg.span().shrink_to_hi(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue