Fix formatting

This commit is contained in:
Nikita Tomashevich 2022-11-29 19:19:26 +03:00
parent dda3ebad0a
commit 2a8b17dbc5
No known key found for this signature in database
GPG key ID: B29791D4D878E345

View file

@ -405,8 +405,7 @@ impl<'tcx> NiceRegionError<'_, 'tcx> {
let mut self_ty = expected_trait_ref.map(|tr| tr.self_ty());
self_ty.highlight.maybe_highlighting_region(vid, actual_has_vid);
if self_ty.value.is_closure()
&& self.tcx().is_fn_trait(expected_trait_ref.value.def_id)
if self_ty.value.is_closure() && self.tcx().is_fn_trait(expected_trait_ref.value.def_id)
{
let closure_sig = self_ty.map(|closure| {
if let ty::Closure(_, substs) = closure.kind() {