Remove unneeded type ascription
This commit is contained in:
parent
c9612a2f57
commit
f430d9d1c8
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user