Skip to content

Commit 1e6ae64

Browse files
committed
Format
1 parent a430684 commit 1e6ae64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_hir_typeck/src/method/suggest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12421242
}
12431243
}
12441244
// Only if an appropriate error source is not found, check method chain for possible candiates
1245-
let error_source_not_found = unsatisfied_predicates.is_empty() && !internal_mutation_in_method;
1245+
let error_source_not_found =
1246+
unsatisfied_predicates.is_empty() && !internal_mutation_in_method;
12461247
if error_source_not_found && let Mode::MethodCall = mode && let SelfSource::MethodCall(mut rcvr_expr) = source {
12471248
while let hir::ExprKind::MethodCall(_path_segment, parent_expr, _args, method_span) =
12481249
rcvr_expr.kind

0 commit comments

Comments
 (0)