about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikita Tomashevich <quant3234@gmail.com>2022-11-29 19:19:26 +0300
committerNikita Tomashevich <quant3234@gmail.com>2022-12-28 14:53:48 +0300
commit2a8b17dbc5489ee085cf1587cf3c63a3fd2746aa (patch)
tree2ef5ed5a788f4574afa0c0b32154167487409cf0
parentdda3ebad0a2b26ee35e2f4f3d26f529b092edfc4 (diff)
downloadrust-2a8b17dbc5489ee085cf1587cf3c63a3fd2746aa.tar.gz
rust-2a8b17dbc5489ee085cf1587cf3c63a3fd2746aa.zip
Fix formatting
-rw-r--r--compiler/rustc_infer/src/infer/error_reporting/nice_region_error/placeholder_error.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/placeholder_error.rs b/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/placeholder_error.rs
index a5e5f953856..202f39521e9 100644
--- a/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/placeholder_error.rs
+++ b/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/placeholder_error.rs
@@ -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() {