File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/ra_project_model/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,12 @@ impl PackageData {
134
134
135
135
impl CargoWorkspace {
136
136
pub fn from_cargo_metadata (
137
- cargo_toml : & Path ,
137
+ cargo_toml : & AbsPath ,
138
138
cargo_features : & CargoConfig ,
139
139
) -> Result < CargoWorkspace > {
140
140
let mut meta = MetadataCommand :: new ( ) ;
141
141
meta. cargo_path ( ra_toolchain:: cargo ( ) ) ;
142
- meta. manifest_path ( cargo_toml) ;
142
+ meta. manifest_path ( cargo_toml. to_path_buf ( ) ) ;
143
143
if cargo_features. all_features {
144
144
meta. features ( CargoOpt :: AllFeatures ) ;
145
145
} else if cargo_features. no_default_features {
@@ -150,7 +150,7 @@ impl CargoWorkspace {
150
150
meta. features ( CargoOpt :: SomeFeatures ( cargo_features. features . clone ( ) ) ) ;
151
151
}
152
152
if let Some ( parent) = cargo_toml. parent ( ) {
153
- meta. current_dir ( parent) ;
153
+ meta. current_dir ( parent. to_path_buf ( ) ) ;
154
154
}
155
155
if let Some ( target) = cargo_features. target . as_ref ( ) {
156
156
meta. other_options ( vec ! [ String :: from( "--filter-platform" ) , target. clone( ) ] ) ;
You can’t perform that action at this time.
0 commit comments