Skip to content

Commit 6970547

Browse files
committed
rustfmt is broken, manually reduce line length
1 parent a1a30f7 commit 6970547

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

compiler/rustc_lint/src/internal.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,16 @@ impl LateLintPass<'_> for QueryStability {
7575
}
7676

7777
let (span, def_id, substs) = match expr.kind {
78-
ExprKind::MethodCall(_, span, _, _) if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) => {
78+
ExprKind::MethodCall(_, span, _, _)
79+
if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) =>
80+
{
7981
(span, def_id, cx.typeck_results().node_substs(expr.hir_id))
8082
},
8183
_ => {
82-
let &ty::FnDef(def_id, substs) = cx.typeck_results().node_type(expr.hir_id).kind() else { return };
84+
let &ty::FnDef(def_id, substs) =
85+
cx.typeck_results()
86+
.node_type(expr.hir_id)
87+
.kind() else { return };
8388
(expr.span, def_id, substs)
8489
}
8590
};

0 commit comments

Comments
 (0)