mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 01:21:21 +00:00
Fix generics in out_event type in derive (#922)
This commit is contained in:
@ -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};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user