Fix generics in out_event type in derive (#922)

This commit is contained in:
Pierre Krieger
2019-02-06 15:45:19 +01:00
committed by GitHub
parent a22121c8e7
commit 6b3b3ed2b5
3 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ fn build_struct(ast: &DeriveInput, data_struct: &DataStruct) -> TokenStream {
match meta_item {
syn::NestedMeta::Meta(syn::Meta::NameValue(ref m)) if m.ident == "out_event" => {
if let syn::Lit::Str(ref s) = m.lit {
let ident: Ident = syn::parse_str(&s.value()).unwrap();
let ident: syn::Type = syn::parse_str(&s.value()).unwrap();
out = quote!{#ident};
}
}