@@ -15,7 +15,7 @@ mod test {
1515 let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
1616 match attr {
1717 AttributeValue :: Null ( true ) => { }
18- other => panic ! ( "unexpected value {:?}" , other ) ,
18+ other => panic ! ( "unexpected value {other :?}" ) ,
1919 }
2020
2121 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -31,7 +31,7 @@ mod test {
3131 let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
3232 match attr {
3333 AttributeValue :: S ( ref s) => assert_eq ! ( "value" , s. as_str( ) ) ,
34- other => panic ! ( "unexpected value {:?}" , other ) ,
34+ other => panic ! ( "unexpected value {other :?}" ) ,
3535 }
3636
3737 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -47,7 +47,7 @@ mod test {
4747 let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
4848 match attr {
4949 AttributeValue :: N ( ref n) => assert_eq ! ( "123.45" , n. as_str( ) ) ,
50- other => panic ! ( "unexpected value {:?}" , other ) ,
50+ other => panic ! ( "unexpected value {other :?}" ) ,
5151 }
5252
5353 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -68,7 +68,7 @@ mod test {
6868 . unwrap ( ) ;
6969 assert_eq ! ( & expected, b)
7070 }
71- other => panic ! ( "unexpected value {:?}" , other ) ,
71+ other => panic ! ( "unexpected value {other :?}" ) ,
7272 }
7373
7474 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -84,7 +84,7 @@ mod test {
8484 let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
8585 match attr {
8686 AttributeValue :: Bool ( b) => assert ! ( b) ,
87- other => panic ! ( "unexpected value {:?}" , other ) ,
87+ other => panic ! ( "unexpected value {other :?}" ) ,
8888 }
8989
9090 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -103,7 +103,7 @@ mod test {
103103 let expected = vec ! [ "Giraffe" , "Hippo" , "Zebra" ] ;
104104 assert_eq ! ( expected, s. iter( ) . collect:: <Vec <_>>( ) ) ;
105105 }
106- other => panic ! ( "unexpected value {:?}" , other ) ,
106+ other => panic ! ( "unexpected value {other :?}" ) ,
107107 }
108108
109109 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -122,7 +122,7 @@ mod test {
122122 let expected = vec ! [ "42.2" , "-19" , "7.5" , "3.14" ] ;
123123 assert_eq ! ( expected, s. iter( ) . collect:: <Vec <_>>( ) ) ;
124124 }
125- other => panic ! ( "unexpected value {:?}" , other ) ,
125+ other => panic ! ( "unexpected value {other :?}" ) ,
126126 }
127127
128128 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -144,7 +144,7 @@ mod test {
144144 . collect :: < Vec < _ > > ( ) ;
145145 assert_eq ! ( & expected, s) ;
146146 }
147- other => panic ! ( "unexpected value {:?}" , other ) ,
147+ other => panic ! ( "unexpected value {other :?}" ) ,
148148 }
149149
150150 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -167,7 +167,7 @@ mod test {
167167 ] ;
168168 assert_eq ! ( & expected, s) ;
169169 }
170- other => panic ! ( "unexpected value {:?}" , other ) ,
170+ other => panic ! ( "unexpected value {other :?}" ) ,
171171 }
172172
173173 let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -188,7 +188,7 @@ mod test {
188188 expected. insert ( "Age" . into ( ) , AttributeValue :: N ( "35" . into ( ) ) ) ;
189189 assert_eq ! ( expected, s) ;
190190 }
191- other => panic ! ( "unexpected value {:?}" , other ) ,
191+ other => panic ! ( "unexpected value {other :?}" ) ,
192192 }
193193 }
194194}
0 commit comments