From 831bd7e91d1f97f565d6ea15d816e638a983ad00 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 1 Nov 2021 22:34:22 -0400 Subject: apply clippy lints --- bin/src/fix/single.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/src/fix') diff --git a/bin/src/fix/single.rs b/bin/src/fix/single.rs index 15a2ef4..b91dc45 100644 --- a/bin/src/fix/single.rs +++ b/bin/src/fix/single.rs @@ -40,8 +40,7 @@ fn find(offset: TextSize, src: &str) -> Result { rules .iter() .filter_map(|rule| rule.validate(&child)) - .filter(|report| report.total_suggestion_range().is_some()) - .next() + .find(|report| report.total_suggestion_range().is_some()) }), _ => None, }) -- cgit v1.2.3