From ae7e55c1dd801c60092205ec8890179e10a47814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 21 Mar 2021 13:13:34 +0100 Subject: clippy::complexity simplifications related to Iterators --- crates/mbe/src/tests/expand.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/mbe') diff --git a/crates/mbe/src/tests/expand.rs b/crates/mbe/src/tests/expand.rs index 2cce62781..8951f3813 100644 --- a/crates/mbe/src/tests/expand.rs +++ b/crates/mbe/src/tests/expand.rs @@ -1225,8 +1225,7 @@ macro_rules! m { ) .expand_statements(r#"m!(C("0"))"#) .descendants() - .find(|token| token.kind() == ERROR) - .is_some()); + .any(|token| token.kind() == ERROR)); } #[test] -- cgit v1.2.3