Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crate_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl CrateMetadata {
fn get_cargo_metadata(manifest_path: &ManifestPath) -> Result<(CargoMetadata, Package)> {
let mut cmd = MetadataCommand::new();
let metadata = cmd
.manifest_path(manifest_path)
.manifest_path(manifest_path.as_ref())
.exec()
.context("Error invoking `cargo metadata`")?;
let root_package_id = metadata
Expand Down
6 changes: 6 additions & 0 deletions src/workspace/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ impl AsRef<Path> for ManifestPath {
}
}

impl From<ManifestPath> for PathBuf {
fn from(path: ManifestPath) -> Self {
path.path
}
}

/// Create, amend and save a copy of the specified `Cargo.toml`.
pub struct Manifest {
path: ManifestPath,
Expand Down