mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-22 03:40:59 +00:00
Prefer Array deser to Term deser
This commit is contained in:
parent
8e6950b549
commit
0cafe502f2
1 changed files with 2 additions and 2 deletions
|
@ -540,8 +540,8 @@ pub fn properties(tokens: TokenStream) -> TokenStream {
|
|||
#[serde(rename_all = "camelCase")]
|
||||
#[serde(untagged)]
|
||||
pub enum #enum_ty {
|
||||
Term(#ty),
|
||||
Array(Vec<#ty>),
|
||||
Term(#ty),
|
||||
}
|
||||
|
||||
impl Default for #enum_ty {
|
||||
|
@ -623,8 +623,8 @@ pub fn properties(tokens: TokenStream) -> TokenStream {
|
|||
#[serde(rename_all = "camelCase")]
|
||||
#[serde(untagged)]
|
||||
pub enum #ty {
|
||||
Term(#term_ty),
|
||||
Array(Vec<#term_ty>),
|
||||
Term(#term_ty),
|
||||
}
|
||||
|
||||
impl Default for #ty {
|
||||
|
|
Loading…
Reference in a new issue