Skip to content

Commit 2ca9cb3

Browse files
Merge #7388
7388: Minor fix for #7387 r=edwin0cheng a=edwin0cheng bors r+ Co-authored-by: Edwin Cheng <[email protected]>
2 parents 6403b53 + eb2cb6b commit 2ca9cb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/project_model/src/build_data.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::{
1010
use anyhow::Result;
1111
use cargo_metadata::{BuildScript, Message, Package, PackageId};
1212
use itertools::Itertools;
13-
use paths::AbsPathBuf;
13+
use paths::{AbsPath, AbsPathBuf};
1414
use rustc_hash::FxHashMap;
1515
use stdx::JodChild;
1616

@@ -37,14 +37,14 @@ pub struct BuildData {
3737

3838
impl BuildDataMap {
3939
pub(crate) fn new(
40-
cargo_toml: &Path,
40+
cargo_toml: &AbsPath,
4141
cargo_features: &CargoConfig,
4242
packages: &Vec<Package>,
4343
progress: &dyn Fn(String),
4444
) -> Result<BuildDataMap> {
4545
let mut cmd = Command::new(toolchain::cargo());
4646
cmd.args(&["check", "--workspace", "--message-format=json", "--manifest-path"])
47-
.arg(cargo_toml);
47+
.arg(cargo_toml.as_ref());
4848

4949
// --all-targets includes tests, benches and examples in addition to the
5050
// default lib and bins. This is an independent concept from the --targets

0 commit comments

Comments
 (0)