diff options
author | Matthias Krüger <[email protected]> | 2021-03-21 12:13:34 +0000 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-03-21 12:13:34 +0000 |
commit | ae7e55c1dd801c60092205ec8890179e10a47814 (patch) | |
tree | 7e55e7a0c144610d55509b3e28bde0edf0953e39 /crates/ide_completion/src | |
parent | bd407a9882250cbbb0897faba08e7d5ef80a4862 (diff) |
clippy::complexity simplifications related to Iterators
Diffstat (limited to 'crates/ide_completion/src')
-rw-r--r-- | crates/ide_completion/src/patterns.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/patterns.rs b/crates/ide_completion/src/patterns.rs index cf5ef07b7..d82564381 100644 --- a/crates/ide_completion/src/patterns.rs +++ b/crates/ide_completion/src/patterns.rs | |||
@@ -71,7 +71,7 @@ fn test_has_block_expr_parent() { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | pub(crate) fn has_bind_pat_parent(element: SyntaxElement) -> bool { | 73 | pub(crate) fn has_bind_pat_parent(element: SyntaxElement) -> bool { |
74 | element.ancestors().find(|it| it.kind() == IDENT_PAT).is_some() | 74 | element.ancestors().any(|it| it.kind() == IDENT_PAT) |
75 | } | 75 | } |
76 | #[test] | 76 | #[test] |
77 | fn test_has_bind_pat_parent() { | 77 | fn test_has_bind_pat_parent() { |