File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6229,7 +6229,7 @@ mod test_map {
6229
6229
}
6230
6230
6231
6231
for ( k, v) in map {
6232
- println ! ( "{}, {}" , k , v ) ;
6232
+ println ! ( "{k }, {v}" ) ;
6233
6233
}
6234
6234
}
6235
6235
@@ -6334,8 +6334,7 @@ mod test_map {
6334
6334
for ( ( key, value) , ( panic_in_clone, panic_in_drop) ) in guard. iter ( ) . zip ( iter) {
6335
6335
if * key != check_count {
6336
6336
return Err ( format ! (
6337
- "key != check_count,\n key: `{}`,\n check_count: `{}`" ,
6338
- key, check_count
6337
+ "key != check_count,\n key: `{key}`,\n check_count: `{check_count}`"
6339
6338
) ) ;
6340
6339
}
6341
6340
if value. dropped
@@ -6362,8 +6361,7 @@ mod test_map {
6362
6361
6363
6362
if count != check_count {
6364
6363
return Err ( format ! (
6365
- "count != check_count,\n count: `{}`,\n check_count: `{}`" ,
6366
- count, check_count
6364
+ "count != check_count,\n count: `{count}`,\n check_count: `{check_count}`"
6367
6365
) ) ;
6368
6366
}
6369
6367
core:: mem:: forget ( guard) ;
You can’t perform that action at this time.
0 commit comments