File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,7 @@ mod tests {
214214 let mut buf = encoded. as_slice ( ) ;
215215 assert ! (
216216 matches!( Header :: decode_raw( & mut buf) , Ok ( PayloadView :: List ( v) ) if v == expected) ,
217- "input: {:?}, expected list: {:?}" ,
218- input,
219- expected
217+ "input: {input:?}, expected list: {expected:?}" ,
220218 ) ;
221219 assert ! ( buf. is_empty( ) , "buffer was not advanced" ) ;
222220 }
@@ -227,9 +225,7 @@ mod tests {
227225 let mut buf = encoded. as_slice ( ) ;
228226 assert ! (
229227 matches!( Header :: decode_raw( & mut buf) , Ok ( PayloadView :: String ( v) ) if v == expected) ,
230- "input: {}, expected string: {:?}" ,
231- input,
232- expected
228+ "input: {input}, expected string: {expected:?}" ,
233229 ) ;
234230 assert ! ( buf. is_empty( ) , "buffer was not advanced" ) ;
235231 }
You can’t perform that action at this time.
0 commit comments