1
1
use std:: borrow:: Cow ;
2
2
use std:: fmt:: Debug ;
3
3
4
- use owo_colors:: OwoColorize ;
5
4
use same_file:: is_same_file;
6
5
use tracing:: { debug, trace} ;
7
6
use url:: Url ;
@@ -399,18 +398,18 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
399
398
400
399
if let Some ( current) = current_tag {
401
400
let message = if let Some ( pretty) = current. pretty ( ) {
402
- format ! ( "{} (`{}`)" , pretty . cyan ( ) , current . cyan ( ) )
401
+ format ! ( "{pretty } (`{current }`)" )
403
402
} else {
404
- format ! ( "`{}`" , current . cyan ( ) )
403
+ format ! ( "`{current }`" )
405
404
} ;
406
405
407
406
Some ( format ! (
408
407
"The distribution is compatible with {}, but you're using {}" ,
409
408
wheel_tags
410
409
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
411
- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
410
+ format!( "{pretty } (`{tag }`)" )
412
411
} else {
413
- format!( "`{}`" , tag . cyan ( ) )
412
+ format!( "`{tag }`" )
414
413
} )
415
414
. collect:: <Vec <_>>( )
416
415
. join( ", " ) ,
@@ -421,9 +420,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
421
420
"The distribution requires {}" ,
422
421
wheel_tags
423
422
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
424
- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
423
+ format!( "{pretty } (`{tag }`)" )
425
424
} else {
426
- format!( "`{}`" , tag . cyan ( ) )
425
+ format!( "`{tag }`" )
427
426
} )
428
427
. collect:: <Vec <_>>( )
429
428
. join( ", " )
@@ -436,17 +435,17 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
436
435
437
436
if let Some ( current) = current_tag {
438
437
let message = if let Some ( pretty) = current. pretty ( ) {
439
- format ! ( "{} (`{}`)" , pretty . cyan ( ) , current . cyan ( ) )
438
+ format ! ( "{pretty } (`{current }`)" )
440
439
} else {
441
- format ! ( "`{}`" , current . cyan ( ) )
440
+ format ! ( "`{current }`" )
442
441
} ;
443
442
Some ( format ! (
444
443
"The distribution is compatible with {}, but you're using {}" ,
445
444
wheel_tags
446
445
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
447
- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
446
+ format!( "{pretty } (`{tag }`)" )
448
447
} else {
449
- format!( "`{}`" , tag . cyan ( ) )
448
+ format!( "`{tag }`" )
450
449
} )
451
450
. collect:: <Vec <_>>( )
452
451
. join( ", " ) ,
@@ -457,9 +456,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
457
456
"The distribution requires {}" ,
458
457
wheel_tags
459
458
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
460
- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
459
+ format!( "{pretty } (`{tag }`)" )
461
460
} else {
462
- format!( "`{}`" , tag . cyan ( ) )
461
+ format!( "`{tag }`" )
463
462
} )
464
463
. collect:: <Vec <_>>( )
465
464
. join( ", " )
@@ -472,17 +471,17 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
472
471
473
472
if let Some ( current) = current_tag {
474
473
let message = if let Some ( pretty) = current. pretty ( ) {
475
- format ! ( "{} (`{}`)" , pretty . cyan ( ) , current . cyan ( ) )
474
+ format ! ( "{pretty } (`{current }`)" )
476
475
} else {
477
- format ! ( "`{}`" , current . cyan ( ) )
476
+ format ! ( "`{current }`" )
478
477
} ;
479
478
Some ( format ! (
480
479
"The distribution is compatible with {}, but you're on {}" ,
481
480
wheel_tags
482
481
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
483
- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
482
+ format!( "{pretty } (`{tag }`)" )
484
483
} else {
485
- format!( "`{}`" , tag . cyan ( ) )
484
+ format!( "`{tag }`" )
486
485
} )
487
486
. collect:: <Vec <_>>( )
488
487
. join( ", " ) ,
@@ -493,9 +492,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
493
492
"The distribution requires {}" ,
494
493
wheel_tags
495
494
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
496
- format!( "{} (`{}`)" , pretty . cyan ( ) , tag . cyan ( ) )
495
+ format!( "{pretty } (`{tag }`)" )
497
496
} else {
498
- format!( "`{}`" , tag . cyan ( ) )
497
+ format!( "`{tag }`" )
499
498
} )
500
499
. collect:: <Vec <_>>( )
501
500
. join( ", " )
0 commit comments