11use std:: borrow:: Cow ;
22use std:: fmt:: Debug ;
33
4- use owo_colors :: OwoColorize ;
4+
55use same_file:: is_same_file;
66use tracing:: { debug, trace} ;
77use url:: Url ;
@@ -399,18 +399,18 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
399399
400400 if let Some ( current) = current_tag {
401401 let message = if let Some ( pretty) = current. pretty ( ) {
402- format ! ( "{} (`{}`)" , pretty . cyan ( ) , current . cyan ( ) )
402+ format ! ( "{pretty } (`{current }`)" )
403403 } else {
404- format ! ( "`{}`" , current . cyan ( ) )
404+ format ! ( "`{current }`" )
405405 } ;
406406
407407 Some ( format ! (
408408 "The distribution is compatible with {}, but you're using {}" ,
409409 wheel_tags
410410 . map( |tag| if let Some ( pretty) = tag. pretty( ) {
411- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
411+ format!( "{pretty } (`{tag }`)" )
412412 } else {
413- format!( "`{}`" , tag . cyan ( ) )
413+ format!( "`{tag }`" )
414414 } )
415415 . collect:: <Vec <_>>( )
416416 . join( ", " ) ,
@@ -421,9 +421,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
421421 "The distribution requires {}" ,
422422 wheel_tags
423423 . map( |tag| if let Some ( pretty) = tag. pretty( ) {
424- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
424+ format!( "{pretty } (`{tag }`)" )
425425 } else {
426- format!( "`{}`" , tag . cyan ( ) )
426+ format!( "`{tag }`" )
427427 } )
428428 . collect:: <Vec <_>>( )
429429 . join( ", " )
@@ -436,17 +436,17 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
436436
437437 if let Some ( current) = current_tag {
438438 let message = if let Some ( pretty) = current. pretty ( ) {
439- format ! ( "{} (`{}`)" , pretty . cyan ( ) , current . cyan ( ) )
439+ format ! ( "{pretty } (`{current }`)" )
440440 } else {
441- format ! ( "`{}`" , current . cyan ( ) )
441+ format ! ( "`{current }`" )
442442 } ;
443443 Some ( format ! (
444444 "The distribution is compatible with {}, but you're using {}" ,
445445 wheel_tags
446446 . map( |tag| if let Some ( pretty) = tag. pretty( ) {
447- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
447+ format!( "{pretty } (`{tag }`)" )
448448 } else {
449- format!( "`{}`" , tag . cyan ( ) )
449+ format!( "`{tag }`" )
450450 } )
451451 . collect:: <Vec <_>>( )
452452 . join( ", " ) ,
@@ -457,9 +457,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
457457 "The distribution requires {}" ,
458458 wheel_tags
459459 . map( |tag| if let Some ( pretty) = tag. pretty( ) {
460- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
460+ format!( "{pretty } (`{tag }`)" )
461461 } else {
462- format!( "`{}`" , tag . cyan ( ) )
462+ format!( "`{tag }`" )
463463 } )
464464 . collect:: <Vec <_>>( )
465465 . join( ", " )
@@ -472,17 +472,17 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
472472
473473 if let Some ( current) = current_tag {
474474 let message = if let Some ( pretty) = current. pretty ( ) {
475- format ! ( "{} (`{}`)" , pretty . cyan ( ) , current . cyan ( ) )
475+ format ! ( "{pretty } (`{current }`)" )
476476 } else {
477- format ! ( "`{}`" , current . cyan ( ) )
477+ format ! ( "`{current }`" )
478478 } ;
479479 Some ( format ! (
480480 "The distribution is compatible with {}, but you're on {}" ,
481481 wheel_tags
482482 . map( |tag| if let Some ( pretty) = tag. pretty( ) {
483- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
483+ format!( "{pretty } (`{tag }`)" )
484484 } else {
485- format!( "`{}`" , tag . cyan ( ) )
485+ format!( "`{tag }`" )
486486 } )
487487 . collect:: <Vec <_>>( )
488488 . join( ", " ) ,
@@ -493,9 +493,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
493493 "The distribution requires {}" ,
494494 wheel_tags
495495 . map( |tag| if let Some ( pretty) = tag. pretty( ) {
496- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
496+ format!( "{pretty } (`{tag }`)" )
497497 } else {
498- format!( "`{}`" , tag . cyan ( ) )
498+ format!( "`{tag }`" )
499499 } )
500500 . collect:: <Vec <_>>( )
501501 . join( ", " )
0 commit comments