@@ -15,7 +15,7 @@ mod test {
15
15
let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
16
16
match attr {
17
17
AttributeValue :: Null ( true ) => { }
18
- other => panic ! ( "unexpected value {:?}" , other ) ,
18
+ other => panic ! ( "unexpected value {other :?}" ) ,
19
19
}
20
20
21
21
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -31,7 +31,7 @@ mod test {
31
31
let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
32
32
match attr {
33
33
AttributeValue :: S ( ref s) => assert_eq ! ( "value" , s. as_str( ) ) ,
34
- other => panic ! ( "unexpected value {:?}" , other ) ,
34
+ other => panic ! ( "unexpected value {other :?}" ) ,
35
35
}
36
36
37
37
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -47,7 +47,7 @@ mod test {
47
47
let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
48
48
match attr {
49
49
AttributeValue :: N ( ref n) => assert_eq ! ( "123.45" , n. as_str( ) ) ,
50
- other => panic ! ( "unexpected value {:?}" , other ) ,
50
+ other => panic ! ( "unexpected value {other :?}" ) ,
51
51
}
52
52
53
53
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -68,7 +68,7 @@ mod test {
68
68
. unwrap ( ) ;
69
69
assert_eq ! ( & expected, b)
70
70
}
71
- other => panic ! ( "unexpected value {:?}" , other ) ,
71
+ other => panic ! ( "unexpected value {other :?}" ) ,
72
72
}
73
73
74
74
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -84,7 +84,7 @@ mod test {
84
84
let attr: AttributeValue = serde_json:: from_value ( value. clone ( ) ) . unwrap ( ) ;
85
85
match attr {
86
86
AttributeValue :: Bool ( b) => assert ! ( b) ,
87
- other => panic ! ( "unexpected value {:?}" , other ) ,
87
+ other => panic ! ( "unexpected value {other :?}" ) ,
88
88
}
89
89
90
90
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -103,7 +103,7 @@ mod test {
103
103
let expected = vec ! [ "Giraffe" , "Hippo" , "Zebra" ] ;
104
104
assert_eq ! ( expected, s. iter( ) . collect:: <Vec <_>>( ) ) ;
105
105
}
106
- other => panic ! ( "unexpected value {:?}" , other ) ,
106
+ other => panic ! ( "unexpected value {other :?}" ) ,
107
107
}
108
108
109
109
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -122,7 +122,7 @@ mod test {
122
122
let expected = vec ! [ "42.2" , "-19" , "7.5" , "3.14" ] ;
123
123
assert_eq ! ( expected, s. iter( ) . collect:: <Vec <_>>( ) ) ;
124
124
}
125
- other => panic ! ( "unexpected value {:?}" , other ) ,
125
+ other => panic ! ( "unexpected value {other :?}" ) ,
126
126
}
127
127
128
128
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -144,7 +144,7 @@ mod test {
144
144
. collect :: < Vec < _ > > ( ) ;
145
145
assert_eq ! ( & expected, s) ;
146
146
}
147
- other => panic ! ( "unexpected value {:?}" , other ) ,
147
+ other => panic ! ( "unexpected value {other :?}" ) ,
148
148
}
149
149
150
150
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -167,7 +167,7 @@ mod test {
167
167
] ;
168
168
assert_eq ! ( & expected, s) ;
169
169
}
170
- other => panic ! ( "unexpected value {:?}" , other ) ,
170
+ other => panic ! ( "unexpected value {other :?}" ) ,
171
171
}
172
172
173
173
let reparsed = serde_json:: to_value ( attr) . unwrap ( ) ;
@@ -188,7 +188,7 @@ mod test {
188
188
expected. insert ( "Age" . into ( ) , AttributeValue :: N ( "35" . into ( ) ) ) ;
189
189
assert_eq ! ( expected, s) ;
190
190
}
191
- other => panic ! ( "unexpected value {:?}" , other ) ,
191
+ other => panic ! ( "unexpected value {other :?}" ) ,
192
192
}
193
193
}
194
194
}
0 commit comments