Skip to content

Commit a4f7a36

Browse files
committed
fix fmt
1 parent 8bebbe5 commit a4f7a36

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/region_errors.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,9 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
636636
return;
637637
};
638638
let mut impls = vec![];
639-
tcx.for_each_relevant_impl(parent, ty, |id| { impls.push(id); });
639+
tcx.for_each_relevant_impl(parent, ty, |id| {
640+
impls.push(id);
641+
});
640642
if let [def_id] = impls[..] {
641643
// The method we have is on the trait, but for `parent` we want to analyze the
642644
// relevant impl instead.
@@ -728,7 +730,8 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
728730
..
729731
}),
730732
..
731-
})) = tcx.hir().get_if_local(parent) {
733+
})) = tcx.hir().get_if_local(parent)
734+
{
732735
let suggestion = match lt.res {
733736
hir::LifetimeName::ImplicitObjectLifetimeDefault if predicates.is_empty() => {
734737
// `impl dyn Trait {}`

0 commit comments

Comments
 (0)