We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20b8f1 commit e3afc72Copy full SHA for e3afc72
clippy_lints/src/use_retain.rs
@@ -220,14 +220,14 @@ fn make_sugg(
220
}
221
222
fn match_acceptable_def_path(cx: &LateContext<'_>, collect_def_id: DefId) -> bool {
223
- return ACCEPTABLE_METHODS
+ ACCEPTABLE_METHODS
224
.iter()
225
- .any(|&method| match_def_path(cx, collect_def_id, method));
+ .any(|&method| match_def_path(cx, collect_def_id, method))
226
227
228
fn match_acceptable_type(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> bool {
229
let expr_ty = cx.typeck_results().expr_ty(expr).peel_refs();
230
- return ACCEPTABLE_TYPES
+ ACCEPTABLE_TYPES
231
232
- .any(|&ty| is_type_diagnostic_item(cx, expr_ty, ty));
+ .any(|&ty| is_type_diagnostic_item(cx, expr_ty, ty))
233
0 commit comments