From 0d3ef6677459dace45d53175d05fb574d565b02b Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 11 Apr 2016 01:18:42 -0700 Subject: [PATCH] Updates for latest Rust. --- macros/src/derive_form.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/src/derive_form.rs b/macros/src/derive_form.rs index 63c72df5..522bf86f 100644 --- a/macros/src/derive_form.rs +++ b/macros/src/derive_form.rs @@ -121,12 +121,12 @@ fn from_form_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substruct // Create a vector of (ident, type) pairs, one for each field in struct. let mut fields_and_types = vec![]; for field in fields { - let ident = match field.node.ident() { + let ident = match field.ident { Some(ident) => ident, None => cx.span_fatal(trait_span, ONLY_STRUCTS_ERR) }; - fields_and_types.push((ident, &field.node.ty)); + fields_and_types.push((ident, &field.ty)); } debug!("Fields and types: {:?}", fields_and_types);