From eb2cb6b01f9fc35498e809f3905d5149c045876b Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Fri, 22 Jan 2021 19:51:14 +0800 Subject: Use AbsPath --- crates/project_model/src/build_data.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/project_model') diff --git a/crates/project_model/src/build_data.rs b/crates/project_model/src/build_data.rs index 82fcf23ad..cf32995e0 100644 --- a/crates/project_model/src/build_data.rs +++ b/crates/project_model/src/build_data.rs @@ -10,7 +10,7 @@ use std::{ use anyhow::Result; use cargo_metadata::{BuildScript, Message, Package, PackageId}; use itertools::Itertools; -use paths::AbsPathBuf; +use paths::{AbsPath, AbsPathBuf}; use rustc_hash::FxHashMap; use stdx::JodChild; @@ -37,14 +37,14 @@ pub struct BuildData { impl BuildDataMap { pub(crate) fn new( - cargo_toml: &Path, + cargo_toml: &AbsPath, cargo_features: &CargoConfig, packages: &Vec, progress: &dyn Fn(String), ) -> Result { let mut cmd = Command::new(toolchain::cargo()); cmd.args(&["check", "--workspace", "--message-format=json", "--manifest-path"]) - .arg(cargo_toml); + .arg(cargo_toml.as_ref()); // --all-targets includes tests, benches and examples in addition to the // default lib and bins. This is an independent concept from the --targets -- cgit v1.2.3