@@ -200,7 +200,7 @@ pub enum Value {
200
200
201
201
#[ cfg( feature = "postgres-array" ) ]
202
202
#[ cfg_attr( docsrs, doc( cfg( feature = "postgres-array" ) ) ) ]
203
- Array ( ArrayType , Option < Vec < Value > > ) ,
203
+ Array ( ArrayType , Option < Box < Vec < Value > > > ) ,
204
204
205
205
#[ cfg( feature = "postgres-vector" ) ]
206
206
#[ cfg_attr( docsrs, doc( cfg( feature = "postgres-vector" ) ) ) ]
@@ -1045,7 +1045,7 @@ pub mod with_array {
1045
1045
fn from ( x : Vec < T > ) -> Value {
1046
1046
Value :: Array (
1047
1047
T :: array_type ( ) ,
1048
- Some ( x. into_iter ( ) . map ( |e| e. into ( ) ) . collect ( ) ) ,
1048
+ Some ( Box :: new ( x. into_iter ( ) . map ( |e| e. into ( ) ) . collect ( ) ) ) ,
1049
1049
)
1050
1050
}
1051
1051
}
@@ -1690,7 +1690,9 @@ pub fn sea_value_to_json_value(value: &Value) -> Json {
1690
1690
#[ cfg( feature = "with-uuid" ) ]
1691
1691
Value :: Uuid ( Some ( v) ) => Json :: String ( v. to_string ( ) ) ,
1692
1692
#[ cfg( feature = "postgres-array" ) ]
1693
- Value :: Array ( _, Some ( v) ) => Json :: Array ( v. iter ( ) . map ( sea_value_to_json_value) . collect ( ) ) ,
1693
+ Value :: Array ( _, Some ( v) ) => {
1694
+ Json :: Array ( v. as_ref ( ) . iter ( ) . map ( sea_value_to_json_value) . collect ( ) )
1695
+ }
1694
1696
#[ cfg( feature = "postgres-vector" ) ]
1695
1697
Value :: Vector ( Some ( v) ) => Json :: Array ( v. as_slice ( ) . iter ( ) . map ( |& v| v. into ( ) ) . collect ( ) ) ,
1696
1698
#[ cfg( feature = "with-ipnetwork" ) ]
0 commit comments