Skip to content

Commit d864ea9

Browse files
committed
fix fmt
1 parent 74edf83 commit d864ea9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/region_errors.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,9 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
642642
return;
643643
};
644644
let mut impls = vec![];
645-
tcx.for_each_relevant_impl(parent, ty, |id| { impls.push(id); });
645+
tcx.for_each_relevant_impl(parent, ty, |id| {
646+
impls.push(id);
647+
});
646648
if let [def_id] = impls[..] {
647649
// The method we have is on the trait, but for `parent` we want to analyze the
648650
// relevant impl instead.
@@ -734,7 +736,8 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
734736
..
735737
}),
736738
..
737-
})) = tcx.hir().get_if_local(parent) {
739+
})) = tcx.hir().get_if_local(parent)
740+
{
738741
let suggestion = match lt.res {
739742
hir::LifetimeName::ImplicitObjectLifetimeDefault if predicates.is_empty() => {
740743
// `impl dyn Trait {}`

0 commit comments

Comments
 (0)