1
Fork 0

Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco

refactor: use shorthand fields

refactor: use shorthand for single fields everywhere (excluding tests).
This commit is contained in:
kennytm 2018-11-07 18:02:05 +08:00
commit 9d9146ad95
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
57 changed files with 68 additions and 68 deletions

View file

@ -2966,7 +2966,7 @@ impl<'tcx> Clean<Item> for ty::VariantDef {
source: cx.tcx.def_span(self.did).clean(cx),
visibility: Some(Inherited),
def_id: self.did,
inner: VariantItem(Variant { kind: kind }),
inner: VariantItem(Variant { kind }),
stability: get_stability(cx, self.did),
deprecation: get_deprecation(cx, self.did),
}