apply [needless_return
] suggestion
This commit is contained in:
parent
af35dcd330
commit
66283bff5f
@ -217,12 +217,12 @@ fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
|
||||
},
|
||||
ExprKind::MethodCall(.., args, _) => {
|
||||
cx.typeck_results().type_dependent_def_id(parent.hir_id).map(|did| {
|
||||
return (
|
||||
(
|
||||
did,
|
||||
args,
|
||||
cx.typeck_results().node_args(parent.hir_id),
|
||||
MethodOrFunction::Method,
|
||||
);
|
||||
)
|
||||
})
|
||||
},
|
||||
_ => None,
|
||||
|
Loading…
Reference in New Issue
Block a user