From e93e10516ecd75956d4efa030d14b198fac744ec Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 23 Jun 2022 17:00:46 -0400 Subject: [PATCH] run `x.py fmt` --- compiler/rustc_borrowck/src/region_infer/mod.rs | 5 +---- compiler/rustc_infer/src/infer/outlives/test_type_match.rs | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/compiler/rustc_borrowck/src/region_infer/mod.rs b/compiler/rustc_borrowck/src/region_infer/mod.rs index 33cf47c00e5f..ec8ba5a7a81b 100644 --- a/compiler/rustc_borrowck/src/region_infer/mod.rs +++ b/compiler/rustc_borrowck/src/region_infer/mod.rs @@ -1363,10 +1363,7 @@ fn eval_outlives(&self, sup_region: RegionVid, sub_region: RegionVid) -> bool { } let result = self.scc_values.contains_points(sup_region_scc, sub_region_scc); - debug!( - "returning {} because of comparison between points in sup/sub", - result - ); + debug!("returning {} because of comparison between points in sup/sub", result); result } diff --git a/compiler/rustc_infer/src/infer/outlives/test_type_match.rs b/compiler/rustc_infer/src/infer/outlives/test_type_match.rs index 645c2df341ba..9f71ebae99e5 100644 --- a/compiler/rustc_infer/src/infer/outlives/test_type_match.rs +++ b/compiler/rustc_infer/src/infer/outlives/test_type_match.rs @@ -174,11 +174,7 @@ fn regions( #[instrument(skip(self), level = "debug")] fn tys(&mut self, pattern: Ty<'tcx>, value: Ty<'tcx>) -> RelateResult<'tcx, Ty<'tcx>> { - if pattern == value { - Ok(pattern) - } else { - relate::super_relate_tys(self, pattern, value) - } + if pattern == value { Ok(pattern) } else { relate::super_relate_tys(self, pattern, value) } } #[instrument(skip(self), level = "debug")]