Replace deprecated MacroInput

This commit is contained in:
David Tolnay
2017-01-27 15:42:43 -08:00
parent c0a06bdc96
commit c52e131a03
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ use bound;
use internals::ast::{Body, Field, Item, Style, Variant};
use internals::{self, attr};
pub fn expand_derive_serialize(item: &syn::MacroInput) -> Result<Tokens, String> {
pub fn expand_derive_serialize(item: &syn::DeriveInput) -> Result<Tokens, String> {
let ctxt = internals::Ctxt::new();
let item = Item::from_ast(&ctxt, item);
try!(ctxt.check());