set current_dir of the metadata command to project path
This commit is contained in:
parent
44c945cd45
commit
dee9a61d87
@ -48,7 +48,10 @@ impl Project {
|
||||
}
|
||||
|
||||
fn read_cargo_metadata(&self) -> cargo_metadata::Metadata {
|
||||
cargo_metadata::MetadataCommand::new().exec().expect("metadata call failed")
|
||||
cargo_metadata::MetadataCommand::new()
|
||||
.current_dir(&self.path)
|
||||
.exec()
|
||||
.expect("metadata call failed")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user