Remove unneeded type ascription

This commit is contained in:
David Tolnay 2016-10-23 21:06:50 -07:00
parent c9612a2f57
commit f430d9d1c8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -194,7 +194,7 @@ pub fn expand_single_item(item: &str) -> Result<String, String> {
let expanded_de = if de {
Some(try!(de::expand_derive_deserialize(&syn_item)))
} else {
None::<quote::Tokens>
None
};
let syn_item = post_expansion::strip_attrs_later(syn_item, &["serde"], "serde");
return Ok(quote!(#expanded_ser #expanded_de #syn_item).to_string());