1
Fork 0

rustfmt is broken, manually reduce line length

This commit is contained in:
lcnr 2022-01-19 11:22:40 +01:00
parent a1a30f7548
commit 6970547d40

View file

@ -75,11 +75,16 @@ impl LateLintPass<'_> for QueryStability {
} }
let (span, def_id, substs) = match expr.kind { let (span, def_id, substs) = match expr.kind {
ExprKind::MethodCall(_, span, _, _) if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) => { ExprKind::MethodCall(_, span, _, _)
if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) =>
{
(span, def_id, cx.typeck_results().node_substs(expr.hir_id)) (span, def_id, cx.typeck_results().node_substs(expr.hir_id))
}, },
_ => { _ => {
let &ty::FnDef(def_id, substs) = cx.typeck_results().node_type(expr.hir_id).kind() else { return }; let &ty::FnDef(def_id, substs) =
cx.typeck_results()
.node_type(expr.hir_id)
.kind() else { return };
(expr.span, def_id, substs) (expr.span, def_id, substs)
} }
}; };