File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -1514,7 +1514,14 @@ impl InheritableFields {
1514
1514
} ;
1515
1515
let mut dep = dep. clone ( ) ;
1516
1516
if let schema:: TomlDependency :: Detailed ( detailed) = & mut dep {
1517
- detailed. resolve_path ( name, self . ws_root ( ) , package_root) ?;
1517
+ if let Some ( rel_path) = & detailed. path {
1518
+ detailed. path = Some ( resolve_relative_path (
1519
+ name,
1520
+ self . ws_root ( ) ,
1521
+ package_root,
1522
+ rel_path,
1523
+ ) ?) ;
1524
+ }
1518
1525
}
1519
1526
Ok ( dep)
1520
1527
}
@@ -1721,25 +1728,6 @@ impl<P: ResolveToPath + Clone> schema::TomlDependency<P> {
1721
1728
}
1722
1729
}
1723
1730
1724
- impl schema:: TomlDetailedDependency {
1725
- fn resolve_path (
1726
- & mut self ,
1727
- name : & str ,
1728
- root_path : & Path ,
1729
- package_root : & Path ,
1730
- ) -> CargoResult < ( ) > {
1731
- if let Some ( rel_path) = & self . path {
1732
- self . path = Some ( resolve_relative_path (
1733
- name,
1734
- root_path,
1735
- package_root,
1736
- rel_path,
1737
- ) ?)
1738
- }
1739
- Ok ( ( ) )
1740
- }
1741
- }
1742
-
1743
1731
impl < P : ResolveToPath + Clone > schema:: TomlDetailedDependency < P > {
1744
1732
fn to_dependency (
1745
1733
& self ,
You can’t perform that action at this time.
0 commit comments