serde: Allow specifying full paths in incoming_derive

This commit is contained in:
Jonas Platte 2021-08-05 13:08:36 +02:00
parent e3427ba5d0
commit c6c89596bb
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -5,8 +5,8 @@ use syn::{
parse_quote, parse_quote,
punctuated::Punctuated, punctuated::Punctuated,
AngleBracketedGenericArguments, Attribute, Data, DeriveInput, Field, Fields, GenericArgument, AngleBracketedGenericArguments, Attribute, Data, DeriveInput, Field, Fields, GenericArgument,
GenericParam, Generics, Ident, ImplGenerics, ParenthesizedGenericArguments, PathArguments, GenericParam, Generics, Ident, ImplGenerics, ParenthesizedGenericArguments, Path,
Token, Type, TypeGenerics, TypePath, TypeReference, TypeSlice, Variant, PathArguments, Token, Type, TypeGenerics, TypePath, TypeReference, TypeSlice, Variant,
}; };
use crate::util::import_ruma_serde; use crate::util::import_ruma_serde;
@ -315,7 +315,7 @@ impl Parse for Meta {
} }
pub enum DeriveMac { pub enum DeriveMac {
Regular(Ident), Regular(Path),
NegativeDeserialize, NegativeDeserialize,
} }