@@ -293,7 +293,7 @@ fn write_logs<DB: ReadResults, W: ReportWriter>(
293293 let content = db
294294 . load_log ( ex, tc, krate)
295295 . 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}" ) ) ;
297297 let content = match content {
298298 Ok ( c) => c,
299299 Err ( e) => {
@@ -392,12 +392,12 @@ fn crate_to_name(c: &Crate) -> String {
392392 Crate :: Registry ( ref details) => format ! ( "{}-{}" , details. name, details. version) ,
393393 Crate :: GitHub ( ref repo) => {
394394 if let Some ( ref sha) = repo. sha {
395- format ! ( "{}.{}.{}" , repo. org, repo. name, sha )
395+ format ! ( "{}.{}.{sha }" , repo. org, repo. name)
396396 } else {
397397 format ! ( "{}.{}" , repo. org, repo. name)
398398 }
399399 }
400- Crate :: Local ( ref name) => format ! ( "{} (local)" , name ) ,
400+ Crate :: Local ( ref name) => format ! ( "{name } (local)" ) ,
401401 Crate :: Path ( ref path) => utf8_percent_encode ( path, & REPORT_ENCODE_SET ) . to_string ( ) ,
402402 Crate :: Git ( ref repo) => {
403403 if let Some ( ref sha) = repo. sha {
@@ -421,7 +421,7 @@ fn crate_to_url(c: &Crate) -> String {
421421 ) ,
422422 Crate :: GitHub ( ref repo) => {
423423 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)
425425 } else {
426426 format ! ( "https://github.com/{}/{}" , repo. org, repo. name)
427427 }
@@ -499,7 +499,7 @@ fn compare(
499499 | ( TestPass , TestSkipped )
500500 | ( TestSkipped , TestFail ( _) )
501501 | ( TestSkipped , TestPass ) => {
502- panic ! ( "can't compare {} and {}" , res1 , res2 ) ;
502+ panic ! ( "can't compare {res1 } and {res2}" ) ;
503503 }
504504 } ,
505505 _ if config. should_skip ( krate) => Comparison :: Skipped ,
0 commit comments