From c6c89596bbd2881e36619bfa808072a68be1d46c Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 5 Aug 2021 13:08:36 +0200 Subject: [PATCH] serde: Allow specifying full paths in incoming_derive --- crates/ruma-serde-macros/src/outgoing.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruma-serde-macros/src/outgoing.rs b/crates/ruma-serde-macros/src/outgoing.rs index b21d37ba..d6f27a0b 100644 --- a/crates/ruma-serde-macros/src/outgoing.rs +++ b/crates/ruma-serde-macros/src/outgoing.rs @@ -5,8 +5,8 @@ use syn::{ parse_quote, punctuated::Punctuated, AngleBracketedGenericArguments, Attribute, Data, DeriveInput, Field, Fields, GenericArgument, - GenericParam, Generics, Ident, ImplGenerics, ParenthesizedGenericArguments, PathArguments, - Token, Type, TypeGenerics, TypePath, TypeReference, TypeSlice, Variant, + GenericParam, Generics, Ident, ImplGenerics, ParenthesizedGenericArguments, Path, + PathArguments, Token, Type, TypeGenerics, TypePath, TypeReference, TypeSlice, Variant, }; use crate::util::import_ruma_serde; @@ -315,7 +315,7 @@ impl Parse for Meta { } pub enum DeriveMac { - Regular(Ident), + Regular(Path), NegativeDeserialize, }