diff --git a/src/init.rs b/src/init.rs index 3ccef756..cc6d8552 100644 --- a/src/init.rs +++ b/src/init.rs @@ -20,7 +20,7 @@ use crate::{ #[derive(Deserialize)] struct CargoLocateProject<'a> { #[serde(borrow)] - root: &'a Path, + root: &'a str, } pub fn init() -> Result<()> { @@ -74,7 +74,7 @@ pub fn init() -> Result<()> { .root; let workspace_manifest_content = fs::read_to_string(workspace_manifest) - .with_context(|| format!("Failed to read the file {}", workspace_manifest.display()))?; + .with_context(|| format!("Failed to read the file {}", workspace_manifest))?; if !workspace_manifest_content.contains("[workspace]") && !workspace_manifest_content.contains("workspace.") {