mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
fixed formatting
This commit is contained in:
parent
3629372723
commit
3955bd4c98
1 changed files with 6 additions and 5 deletions
|
@ -72,11 +72,12 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, method
|
||||||
..
|
..
|
||||||
},
|
},
|
||||||
args,
|
args,
|
||||||
) => {
|
) => cx
|
||||||
cx.typeck_results().qpath_res(path, *hir_id).opt_def_id()
|
.typeck_results()
|
||||||
|
.qpath_res(path, *hir_id)
|
||||||
|
.opt_def_id()
|
||||||
.filter(|fn_id| cx.tcx.def_kind(fn_id).is_fn_like())
|
.filter(|fn_id| cx.tcx.def_kind(fn_id).is_fn_like())
|
||||||
.is_some_and(|fn_id| is_arg_ty_unified_in_fn(cx, fn_id, expr.hir_id, args))
|
.is_some_and(|fn_id| is_arg_ty_unified_in_fn(cx, fn_id, expr.hir_id, args)),
|
||||||
}
|
|
||||||
ExprKind::MethodCall(_name, recv, args, _span) => is_arg_ty_unified_in_fn(
|
ExprKind::MethodCall(_name, recv, args, _span) => is_arg_ty_unified_in_fn(
|
||||||
cx,
|
cx,
|
||||||
cx.typeck_results().type_dependent_def_id(parent.hir_id).unwrap(),
|
cx.typeck_results().type_dependent_def_id(parent.hir_id).unwrap(),
|
||||||
|
|
Loading…
Reference in a new issue