mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-28 13:30:48 +00:00
implement to_json for most tuples
This commit is contained in:
parent
dce88b74da
commit
5892d4fd67
@ -2218,7 +2218,7 @@ macro_rules! impl_to_json_tuple {
|
||||
}
|
||||
}
|
||||
|
||||
impl_to_json_tuple! { T0, T1, } // T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, }
|
||||
impl_to_json_tuple! { T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, }
|
||||
|
||||
impl<A:ToJson> ToJson for Vec<A> {
|
||||
fn to_json(&self) -> Json { List(self.iter().map(|elt| elt.to_json()).collect()) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user