From b0d7ccb133e5b254f7d9c317ad566903dc1c4b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Thu, 16 Nov 2023 16:42:06 +0000 Subject: [PATCH] fmt --- compiler/rustc_hir_typeck/src/expr.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_hir_typeck/src/expr.rs b/compiler/rustc_hir_typeck/src/expr.rs index ab567edd062..4e5a9ce89a9 100644 --- a/compiler/rustc_hir_typeck/src/expr.rs +++ b/compiler/rustc_hir_typeck/src/expr.rs @@ -2156,7 +2156,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { } } if let Some(default_trait) = self.tcx.get_diagnostic_item(sym::Default) - && self.infcx + && self + .infcx .type_implements_trait(default_trait, [adt_ty], self.param_env) .may_apply() {