Skip to content

Commit 258ebfe

Browse files
committed
tidy
1 parent 087c0d7 commit 258ebfe

File tree

1 file changed

+1
-4
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-4
lines changed

src/librustc_typeck/check/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -4974,10 +4974,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
49744974
}
49754975
Some(Node::Ctor(hir::VariantData::Tuple(fields, _))) => {
49764976
sugg_call = fields.iter().map(|_| "_").collect::<Vec<_>>().join(", ");
4977-
match def_id
4978-
.as_local()
4979-
.map(|def_id| hir.def_kind(def_id))
4980-
{
4977+
match def_id.as_local().map(|def_id| hir.def_kind(def_id)) {
49814978
Some(DefKind::Ctor(hir::def::CtorOf::Variant, _)) => {
49824979
msg = "instantiate this tuple variant";
49834980
}

0 commit comments

Comments
 (0)