num-macros: VariantData no longer needs to be dereferenced
This commit is contained in:
parent
fe99867590
commit
28209688ab
|
@ -132,7 +132,7 @@ fn cs_from(name: &str, cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure
|
|||
let mut arms = Vec::new();
|
||||
|
||||
for variant in &enum_def.variants {
|
||||
match *variant.node.data {
|
||||
match variant.node.data {
|
||||
ast::VariantData::Unit(..) => {
|
||||
let span = variant.span;
|
||||
|
||||
|
|
Loading…
Reference in New Issue