File tree Expand file tree Collapse file tree 2 files changed +29
-30
lines changed Expand file tree Collapse file tree 2 files changed +29
-30
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,8 @@ impl<'cfg> Workspace<'cfg> {
437
437
url,
438
438
deps. iter ( )
439
439
. map ( |( name, dep) | {
440
- dep. to_dependency_split (
440
+ crate :: util:: toml:: to_dependency (
441
+ dep,
441
442
name,
442
443
source,
443
444
& mut nested_paths,
Original file line number Diff line number Diff line change @@ -1694,35 +1694,33 @@ fn inner_dependency_inherit_with<'a>(
1694
1694
} )
1695
1695
}
1696
1696
1697
- impl < P : ResolveToPath + Clone > schema:: TomlDependency < P > {
1698
- pub ( crate ) fn to_dependency_split (
1699
- & self ,
1700
- name : & str ,
1701
- source_id : SourceId ,
1702
- nested_paths : & mut Vec < PathBuf > ,
1703
- config : & Config ,
1704
- warnings : & mut Vec < String > ,
1705
- platform : Option < Platform > ,
1706
- root : & Path ,
1707
- features : & Features ,
1708
- kind : Option < DepKind > ,
1709
- ) -> CargoResult < Dependency > {
1710
- dep_to_dependency (
1711
- self ,
1712
- name,
1713
- & mut Context {
1714
- deps : & mut Vec :: new ( ) ,
1715
- source_id,
1716
- nested_paths,
1717
- config,
1718
- warnings,
1719
- platform,
1720
- root,
1721
- features,
1722
- } ,
1723
- kind,
1724
- )
1725
- }
1697
+ pub ( crate ) fn to_dependency < P : ResolveToPath + Clone > (
1698
+ dep : & schema:: TomlDependency < P > ,
1699
+ name : & str ,
1700
+ source_id : SourceId ,
1701
+ nested_paths : & mut Vec < PathBuf > ,
1702
+ config : & Config ,
1703
+ warnings : & mut Vec < String > ,
1704
+ platform : Option < Platform > ,
1705
+ root : & Path ,
1706
+ features : & Features ,
1707
+ kind : Option < DepKind > ,
1708
+ ) -> CargoResult < Dependency > {
1709
+ dep_to_dependency (
1710
+ dep,
1711
+ name,
1712
+ & mut Context {
1713
+ deps : & mut Vec :: new ( ) ,
1714
+ source_id,
1715
+ nested_paths,
1716
+ config,
1717
+ warnings,
1718
+ platform,
1719
+ root,
1720
+ features,
1721
+ } ,
1722
+ kind,
1723
+ )
1726
1724
}
1727
1725
1728
1726
fn dep_to_dependency < P : ResolveToPath + Clone > (
You can’t perform that action at this time.
0 commit comments