@@ -203,7 +203,7 @@ fn resolve_dependency(
203
203
section : & DepTable ,
204
204
config : & Config ,
205
205
registry : & mut PackageRegistry < ' _ > ,
206
- ) -> CargoResult < DependencyEx > {
206
+ ) -> CargoResult < DependencyUI > {
207
207
let crate_spec = arg
208
208
. crate_spec
209
209
. as_deref ( )
@@ -599,13 +599,13 @@ fn populate_dependency(mut dependency: Dependency, arg: &DepOp) -> Dependency {
599
599
dependency
600
600
}
601
601
602
- pub struct DependencyEx {
602
+ pub struct DependencyUI {
603
603
dep : Dependency ,
604
604
available_version : Option < semver:: Version > ,
605
605
available_features : BTreeMap < String , Vec < String > > ,
606
606
}
607
607
608
- impl DependencyEx {
608
+ impl DependencyUI {
609
609
fn new ( dep : Dependency ) -> Self {
610
610
Self {
611
611
dep,
@@ -634,7 +634,7 @@ impl DependencyEx {
634
634
}
635
635
}
636
636
637
- impl < ' s > From < & ' s Summary > for DependencyEx {
637
+ impl < ' s > From < & ' s Summary > for DependencyUI {
638
638
fn from ( other : & ' s Summary ) -> Self {
639
639
let dep = Dependency :: from ( other) ;
640
640
let mut dep = Self :: new ( dep) ;
@@ -643,13 +643,13 @@ impl<'s> From<&'s Summary> for DependencyEx {
643
643
}
644
644
}
645
645
646
- impl std:: fmt:: Display for DependencyEx {
646
+ impl std:: fmt:: Display for DependencyUI {
647
647
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
648
648
self . dep . fmt ( f)
649
649
}
650
650
}
651
651
652
- impl std:: ops:: Deref for DependencyEx {
652
+ impl std:: ops:: Deref for DependencyUI {
653
653
type Target = Dependency ;
654
654
655
655
fn deref ( & self ) -> & Self :: Target {
@@ -662,8 +662,8 @@ fn populate_available_features(
662
662
dependency : Dependency ,
663
663
query : & crate :: core:: dependency:: Dependency ,
664
664
registry : & mut PackageRegistry < ' _ > ,
665
- ) -> CargoResult < DependencyEx > {
666
- let mut dependency = DependencyEx :: new ( dependency) ;
665
+ ) -> CargoResult < DependencyUI > {
666
+ let mut dependency = DependencyUI :: new ( dependency) ;
667
667
668
668
if !dependency. available_features . is_empty ( ) {
669
669
return Ok ( dependency) ;
@@ -695,7 +695,7 @@ fn populate_available_features(
695
695
Ok ( dependency)
696
696
}
697
697
698
- fn print_msg ( shell : & mut Shell , dep : & DependencyEx , section : & [ String ] ) -> CargoResult < ( ) > {
698
+ fn print_msg ( shell : & mut Shell , dep : & DependencyUI , section : & [ String ] ) -> CargoResult < ( ) > {
699
699
use std:: fmt:: Write ;
700
700
701
701
if matches ! ( shell. verbosity( ) , crate :: core:: shell:: Verbosity :: Quiet ) {
0 commit comments