diff options
author | figsoda <[email protected]> | 2021-11-02 02:34:22 +0000 |
---|---|---|
committer | figsoda <[email protected]> | 2021-11-02 02:34:22 +0000 |
commit | 831bd7e91d1f97f565d6ea15d816e638a983ad00 (patch) | |
tree | c042af6b11ff77ac462c19f84bff748f210729cc /bin/src/fix/single.rs | |
parent | 90ea9335b55efb38802a2983a58580b3bc568c5f (diff) |
apply clippy lints
Diffstat (limited to 'bin/src/fix/single.rs')
-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 | }) |