From 258ebfe4765d370326b9996bca022004c01a79b6 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 24 Apr 2020 14:48:10 -0500 Subject: [PATCH] tidy --- src/librustc_typeck/check/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index b18546cf321..b14aa8fcfb1 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -4974,10 +4974,7 @@ fn suggest_fn_call( } Some(Node::Ctor(hir::VariantData::Tuple(fields, _))) => { sugg_call = fields.iter().map(|_| "_").collect::>().join(", "); - match def_id - .as_local() - .map(|def_id| hir.def_kind(def_id)) - { + match def_id.as_local().map(|def_id| hir.def_kind(def_id)) { Some(DefKind::Ctor(hir::def::CtorOf::Variant, _)) => { msg = "instantiate this tuple variant"; } -- 2.44.0