]> git.lizzy.rs Git - rust.git/commitdiff
tidy
authormark <markm@cs.wisc.edu>
Fri, 24 Apr 2020 19:48:10 +0000 (14:48 -0500)
committermark <markm@cs.wisc.edu>
Fri, 24 Apr 2020 19:48:10 +0000 (14:48 -0500)
src/librustc_typeck/check/mod.rs

index b18546cf321b623de24c554b0f5c2688392ef7b6..b14aa8fcfb12fc63250ed20e851e595953e80390 100644 (file)
@@ -4974,10 +4974,7 @@ fn suggest_fn_call(
                 }
                 Some(Node::Ctor(hir::VariantData::Tuple(fields, _))) => {
                     sugg_call = fields.iter().map(|_| "_").collect::<Vec<_>>().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";
                         }