Skip to content

Commit

Permalink
use path when serializing a package
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Jan 2, 2019
1 parent 0c28175 commit 52810dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/core/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct SerializedPackage<'a> {
dependencies: &'a [Dependency],
targets: Vec<&'a Target>,
features: &'a FeatureMap,
manifest_path: &'a str,
manifest_path: &'a Path,
metadata: Option<&'a toml::Value>,
authors: &'a [String],
categories: &'a [String],
Expand Down Expand Up @@ -113,7 +113,7 @@ impl ser::Serialize for Package {
dependencies: summary.dependencies(),
targets,
features: summary.features(),
manifest_path: &self.manifest_path.display().to_string(),
manifest_path: &self.manifest_path,
metadata: self.manifest.custom_metadata(),
authors,
categories,
Expand Down

0 comments on commit 52810dd

Please sign in to comment.