From 28209688abe0e94f29488710ba7057751664b621 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 27 Oct 2015 11:51:35 -0700 Subject: [PATCH] num-macros: VariantData no longer needs to be dereferenced --- num-macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/num-macros/src/lib.rs b/num-macros/src/lib.rs index 4cbcece..5deaacd 100644 --- a/num-macros/src/lib.rs +++ b/num-macros/src/lib.rs @@ -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;