diff options
Diffstat (limited to 'bin/src/fix')
-rw-r--r-- | bin/src/fix/single.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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<Report, SingleFixErr> { | |||
40 | rules | 40 | rules |
41 | .iter() | 41 | .iter() |
42 | .filter_map(|rule| rule.validate(&child)) | 42 | .filter_map(|rule| rule.validate(&child)) |
43 | .filter(|report| report.total_suggestion_range().is_some()) | 43 | .find(|report| report.total_suggestion_range().is_some()) |
44 | .next() | ||
45 | }), | 44 | }), |
46 | _ => None, | 45 | _ => None, |
47 | }) | 46 | }) |