mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 04:48:01 +00:00
implement to_json for most tuples
This commit is contained in:
+1
-1
@@ -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()) }
|
||||
|
||||
Reference in New Issue
Block a user