diff options
| author | kyoto7250 <50972773+kyoto7250@users.noreply.github.com> | 2022-06-09 22:20:59 +0900 |
|---|---|---|
| committer | kyoto7250 <50972773+kyoto7250@users.noreply.github.com> | 2022-06-27 08:11:58 +0900 |
| commit | e3afc72caad1132ecad4ba75fc810a3ad309b49e (patch) | |
| tree | 4e19f7402fc8415ff23d1c2401ceb255b47f7a70 /clippy_lints | |
| parent | b20b8f10dd1965af7854477eddf16e9bba15eed9 (diff) | |
| download | rust-e3afc72caad1132ecad4ba75fc810a3ad309b49e.tar.gz rust-e3afc72caad1132ecad4ba75fc810a3ad309b49e.zip | |
remove needless return
Diffstat (limited to 'clippy_lints')
| -rw-r--r-- | clippy_lints/src/use_retain.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/use_retain.rs b/clippy_lints/src/use_retain.rs index 324ae06106c..d2479168ada 100644 --- a/clippy_lints/src/use_retain.rs +++ b/clippy_lints/src/use_retain.rs @@ -220,14 +220,14 @@ fn make_sugg( } fn match_acceptable_def_path(cx: &LateContext<'_>, collect_def_id: DefId) -> bool { - return ACCEPTABLE_METHODS + ACCEPTABLE_METHODS .iter() - .any(|&method| match_def_path(cx, collect_def_id, method)); + .any(|&method| match_def_path(cx, collect_def_id, method)) } fn match_acceptable_type(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> bool { let expr_ty = cx.typeck_results().expr_ty(expr).peel_refs(); - return ACCEPTABLE_TYPES + ACCEPTABLE_TYPES .iter() - .any(|&ty| is_type_diagnostic_item(cx, expr_ty, ty)); + .any(|&ty| is_type_diagnostic_item(cx, expr_ty, ty)) } |
