mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
clippy::complexity simplifications related to Iterators
This commit is contained in:
parent
bd407a9882
commit
ae7e55c1dd
12 changed files with 64 additions and 80 deletions
|
@ -71,7 +71,7 @@ fn test_has_block_expr_parent() {
|
|||
}
|
||||
|
||||
pub(crate) fn has_bind_pat_parent(element: SyntaxElement) -> bool {
|
||||
element.ancestors().find(|it| it.kind() == IDENT_PAT).is_some()
|
||||
element.ancestors().any(|it| it.kind() == IDENT_PAT)
|
||||
}
|
||||
#[test]
|
||||
fn test_has_bind_pat_parent() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue