num-macros: VariantData no longer needs to be dereferenced

This commit is contained in:
Josh Stone 2015-10-27 11:51:35 -07:00
parent fe99867590
commit 28209688ab
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ fn cs_from(name: &str, cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure
let mut arms = Vec::new(); let mut arms = Vec::new();
for variant in &enum_def.variants { for variant in &enum_def.variants {
match *variant.node.data { match variant.node.data {
ast::VariantData::Unit(..) => { ast::VariantData::Unit(..) => {
let span = variant.span; let span = variant.span;