1
1
use std:: borrow:: Cow ;
2
2
use std:: fmt:: Debug ;
3
3
4
- use owo_colors :: OwoColorize ;
4
+
5
5
use same_file:: is_same_file;
6
6
use tracing:: { debug, trace} ;
7
7
use url:: Url ;
@@ -376,18 +376,18 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
376
376
377
377
if let Some ( current) = current_tag {
378
378
let message = if let Some ( pretty) = current. pretty ( ) {
379
- format ! ( "{} (`{}`)" , pretty. cyan ( ) , current. cyan ( ) )
379
+ format ! ( "{} (`{}`)" , pretty, current)
380
380
} else {
381
- format ! ( "`{}`" , current. cyan ( ) )
381
+ format ! ( "`{}`" , current)
382
382
} ;
383
383
384
384
Some ( format ! (
385
385
"The distribution is compatible with {}, but you're using {}" ,
386
386
wheel_tags
387
387
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
388
- format!( "{} (`{}`)" , pretty. cyan ( ) , tag. cyan ( ) )
388
+ format!( "{} (`{}`)" , pretty, tag)
389
389
} else {
390
- format!( "`{}`" , tag. cyan ( ) )
390
+ format!( "`{}`" , tag)
391
391
} )
392
392
. collect:: <Vec <_>>( )
393
393
. join( ", " ) ,
@@ -398,9 +398,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
398
398
"The distribution requires {}" ,
399
399
wheel_tags
400
400
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
401
- format!( "{} (`{}`)" , pretty. cyan ( ) , tag. cyan ( ) )
401
+ format!( "{} (`{}`)" , pretty, tag)
402
402
} else {
403
- format!( "`{}`" , tag. cyan ( ) )
403
+ format!( "`{}`" , tag)
404
404
} )
405
405
. collect:: <Vec <_>>( )
406
406
. join( ", " )
@@ -413,17 +413,17 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
413
413
414
414
if let Some ( current) = current_tag {
415
415
let message = if let Some ( pretty) = current. pretty ( ) {
416
- format ! ( "{} (`{}`)" , pretty. cyan ( ) , current. cyan ( ) )
416
+ format ! ( "{} (`{}`)" , pretty, current)
417
417
} else {
418
- format ! ( "`{}`" , current. cyan ( ) )
418
+ format ! ( "`{}`" , current)
419
419
} ;
420
420
Some ( format ! (
421
421
"The distribution is compatible with {}, but you're using {}" ,
422
422
wheel_tags
423
423
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
424
- format!( "{} (`{}`)" , pretty. cyan ( ) , tag. cyan ( ) )
424
+ format!( "{} (`{}`)" , pretty, tag)
425
425
} else {
426
- format!( "`{}`" , tag. cyan ( ) )
426
+ format!( "`{}`" , tag)
427
427
} )
428
428
. collect:: <Vec <_>>( )
429
429
. join( ", " ) ,
@@ -434,9 +434,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
434
434
"The distribution requires {}" ,
435
435
wheel_tags
436
436
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
437
- format!( "{} (`{}`)" , pretty. cyan ( ) , tag. cyan ( ) )
437
+ format!( "{} (`{}`)" , pretty, tag)
438
438
} else {
439
- format!( "`{}`" , tag. cyan ( ) )
439
+ format!( "`{}`" , tag)
440
440
} )
441
441
. collect:: <Vec <_>>( )
442
442
. join( ", " )
@@ -449,17 +449,17 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
449
449
450
450
if let Some ( current) = current_tag {
451
451
let message = if let Some ( pretty) = current. pretty ( ) {
452
- format ! ( "{} (`{}`)" , pretty. cyan ( ) , current. cyan ( ) )
452
+ format ! ( "{} (`{}`)" , pretty, current)
453
453
} else {
454
- format ! ( "`{}`" , current. cyan ( ) )
454
+ format ! ( "`{}`" , current)
455
455
} ;
456
456
Some ( format ! (
457
457
"The distribution is compatible with {}, but you're on {}" ,
458
458
wheel_tags
459
459
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
460
- format!( "{} (`{}`)" , pretty. cyan ( ) , tag. cyan ( ) )
460
+ format!( "{} (`{}`)" , pretty, tag)
461
461
} else {
462
- format!( "`{}`" , tag. cyan ( ) )
462
+ format!( "`{}`" , tag)
463
463
} )
464
464
. collect:: <Vec <_>>( )
465
465
. join( ", " ) ,
@@ -470,9 +470,9 @@ fn generate_dist_compatibility_hint(wheel_tags: &ExpandedTags, tags: &Tags) -> O
470
470
"The distribution requires {}" ,
471
471
wheel_tags
472
472
. map( |tag| if let Some ( pretty) = tag. pretty( ) {
473
- format!( "{} (`{}`)" , pretty. cyan ( ) , tag. cyan ( ) )
473
+ format!( "{} (`{}`)" , pretty, tag)
474
474
} else {
475
- format!( "`{}`" , tag. cyan ( ) )
475
+ format!( "`{}`" , tag)
476
476
} )
477
477
. collect:: <Vec <_>>( )
478
478
. join( ", " )
0 commit comments