mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-25 13:21:00 +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(rename_all = "camelCase")]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum #enum_ty {
|
pub enum #enum_ty {
|
||||||
Term(#ty),
|
|
||||||
Array(Vec<#ty>),
|
Array(Vec<#ty>),
|
||||||
|
Term(#ty),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for #enum_ty {
|
impl Default for #enum_ty {
|
||||||
|
@ -623,8 +623,8 @@ pub fn properties(tokens: TokenStream) -> TokenStream {
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum #ty {
|
pub enum #ty {
|
||||||
Term(#term_ty),
|
|
||||||
Array(Vec<#term_ty>),
|
Array(Vec<#term_ty>),
|
||||||
|
Term(#term_ty),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for #ty {
|
impl Default for #ty {
|
||||||
|
|
Loading…
Reference in a new issue