@@ -621,7 +621,7 @@ mod any_value {
621
621
622
622
fn end ( self ) -> Result < Self :: Ok , Self :: Error > {
623
623
Ok ( Some ( AnyValue :: Map ( {
624
- let mut variant = HashMap :: default ( ) ;
624
+ let mut variant = HashMap :: new ( ) ;
625
625
variant. insert ( Key :: from ( self . variant ) , AnyValue :: ListAny ( self . value ) ) ;
626
626
variant
627
627
} ) ) )
@@ -713,7 +713,7 @@ mod any_value {
713
713
714
714
fn end ( self ) -> Result < Self :: Ok , Self :: Error > {
715
715
Ok ( Some ( AnyValue :: Map ( {
716
- let mut variant = HashMap :: default ( ) ;
716
+ let mut variant = HashMap :: new ( ) ;
717
717
variant. insert ( Key :: from ( self . variant ) , AnyValue :: Map ( self . value ) ) ;
718
718
variant
719
719
} ) ) )
@@ -1030,7 +1030,7 @@ mod tests {
1030
1030
1031
1031
assert_eq ! (
1032
1032
AnyValue :: Map ( {
1033
- let mut map = HashMap :: default ( ) ;
1033
+ let mut map = HashMap :: new ( ) ;
1034
1034
1035
1035
map. insert( Key :: from( "a" ) , AnyValue :: Int ( 1 ) ) ;
1036
1036
map. insert( Key :: from( "b" ) , AnyValue :: Int ( 1 ) ) ;
@@ -1043,7 +1043,7 @@ mod tests {
1043
1043
1044
1044
assert_eq ! (
1045
1045
AnyValue :: Map ( {
1046
- let mut map = HashMap :: default ( ) ;
1046
+ let mut map = HashMap :: new ( ) ;
1047
1047
1048
1048
map. insert( Key :: from( "a" ) , AnyValue :: Int ( 1 ) ) ;
1049
1049
map. insert( Key :: from( "b" ) , AnyValue :: Int ( 1 ) ) ;
@@ -1066,7 +1066,7 @@ mod tests {
1066
1066
1067
1067
assert_eq ! (
1068
1068
AnyValue :: Map ( {
1069
- let mut map = HashMap :: default ( ) ;
1069
+ let mut map = HashMap :: new ( ) ;
1070
1070
map. insert( Key :: from( "Newtype" ) , AnyValue :: Int ( 42 ) ) ;
1071
1071
1072
1072
map
@@ -1076,12 +1076,12 @@ mod tests {
1076
1076
1077
1077
assert_eq ! (
1078
1078
AnyValue :: Map ( {
1079
- let mut map = HashMap :: default ( ) ;
1079
+ let mut map = HashMap :: new ( ) ;
1080
1080
1081
1081
map. insert(
1082
1082
Key :: from( "Struct" ) ,
1083
1083
AnyValue :: Map ( {
1084
- let mut map = HashMap :: default ( ) ;
1084
+ let mut map = HashMap :: new ( ) ;
1085
1085
1086
1086
map. insert( Key :: from( "a" ) , AnyValue :: Int ( 1 ) ) ;
1087
1087
map. insert( Key :: from( "b" ) , AnyValue :: Int ( 1 ) ) ;
@@ -1098,7 +1098,7 @@ mod tests {
1098
1098
1099
1099
assert_eq ! (
1100
1100
AnyValue :: Map ( {
1101
- let mut map = HashMap :: default ( ) ;
1101
+ let mut map = HashMap :: new ( ) ;
1102
1102
1103
1103
map. insert(
1104
1104
Key :: from( "Tuple" ) ,
0 commit comments