Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e3afc72

Browse files
committed
remove needless return
1 parent b20b8f1 commit e3afc72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/use_retain.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ fn make_sugg(
220220
}
221221

222222
fn match_acceptable_def_path(cx: &LateContext<'_>, collect_def_id: DefId) -> bool {
223-
return ACCEPTABLE_METHODS
223+
ACCEPTABLE_METHODS
224224
.iter()
225-
.any(|&method| match_def_path(cx, collect_def_id, method));
225+
.any(|&method| match_def_path(cx, collect_def_id, method))
226226
}
227227

228228
fn match_acceptable_type(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> bool {
229229
let expr_ty = cx.typeck_results().expr_ty(expr).peel_refs();
230-
return ACCEPTABLE_TYPES
230+
ACCEPTABLE_TYPES
231231
.iter()
232-
.any(|&ty| is_type_diagnostic_item(cx, expr_ty, ty));
232+
.any(|&ty| is_type_diagnostic_item(cx, expr_ty, ty))
233233
}

0 commit comments

Comments
 (0)