apply [needless_return] suggestion

This commit is contained in:
apoisternex 2024-08-04 10:45:42 -03:00
parent af35dcd330
commit 66283bff5f

View File

@ -217,12 +217,12 @@ fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
}, },
ExprKind::MethodCall(.., args, _) => { ExprKind::MethodCall(.., args, _) => {
cx.typeck_results().type_dependent_def_id(parent.hir_id).map(|did| { cx.typeck_results().type_dependent_def_id(parent.hir_id).map(|did| {
return ( (
did, did,
args, args,
cx.typeck_results().node_args(parent.hir_id), cx.typeck_results().node_args(parent.hir_id),
MethodOrFunction::Method, MethodOrFunction::Method,
); )
}) })
}, },
_ => None, _ => None,