@@ -293,7 +293,7 @@ fn write_logs<DB: ReadResults, W: ReportWriter>(
293
293
let content = db
294
294
. load_log ( ex, tc, krate)
295
295
. and_then ( |c| c. ok_or_else ( || err_msg ( "missing logs" ) ) )
296
- . with_context ( |_| format ! ( "failed to read log of {} on {}" , krate , tc ) ) ;
296
+ . with_context ( |_| format ! ( "failed to read log of {krate } on {tc}" ) ) ;
297
297
let content = match content {
298
298
Ok ( c) => c,
299
299
Err ( e) => {
@@ -392,12 +392,12 @@ fn crate_to_name(c: &Crate) -> String {
392
392
Crate :: Registry ( ref details) => format ! ( "{}-{}" , details. name, details. version) ,
393
393
Crate :: GitHub ( ref repo) => {
394
394
if let Some ( ref sha) = repo. sha {
395
- format ! ( "{}.{}.{}" , repo. org, repo. name, sha )
395
+ format ! ( "{}.{}.{sha }" , repo. org, repo. name)
396
396
} else {
397
397
format ! ( "{}.{}" , repo. org, repo. name)
398
398
}
399
399
}
400
- Crate :: Local ( ref name) => format ! ( "{} (local)" , name ) ,
400
+ Crate :: Local ( ref name) => format ! ( "{name } (local)" ) ,
401
401
Crate :: Path ( ref path) => utf8_percent_encode ( path, & REPORT_ENCODE_SET ) . to_string ( ) ,
402
402
Crate :: Git ( ref repo) => {
403
403
if let Some ( ref sha) = repo. sha {
@@ -421,7 +421,7 @@ fn crate_to_url(c: &Crate) -> String {
421
421
) ,
422
422
Crate :: GitHub ( ref repo) => {
423
423
if let Some ( ref sha) = repo. sha {
424
- format ! ( "https://github.com/{}/{}/tree/{}" , repo. org, repo. name, sha )
424
+ format ! ( "https://github.com/{}/{}/tree/{sha }" , repo. org, repo. name)
425
425
} else {
426
426
format ! ( "https://github.com/{}/{}" , repo. org, repo. name)
427
427
}
@@ -499,7 +499,7 @@ fn compare(
499
499
| ( TestPass , TestSkipped )
500
500
| ( TestSkipped , TestFail ( _) )
501
501
| ( TestSkipped , TestPass ) => {
502
- panic ! ( "can't compare {} and {}" , res1 , res2 ) ;
502
+ panic ! ( "can't compare {res1 } and {res2}" ) ;
503
503
}
504
504
} ,
505
505
_ if config. should_skip ( krate) => Comparison :: Skipped ,
0 commit comments