Skip to content

Commit 52810dd

Browse files
committed
use path when serializing a package
1 parent 0c28175 commit 52810dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/core/package.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct SerializedPackage<'a> {
6363
dependencies: &'a [Dependency],
6464
targets: Vec<&'a Target>,
6565
features: &'a FeatureMap,
66-
manifest_path: &'a str,
66+
manifest_path: &'a Path,
6767
metadata: Option<&'a toml::Value>,
6868
authors: &'a [String],
6969
categories: &'a [String],
@@ -113,7 +113,7 @@ impl ser::Serialize for Package {
113113
dependencies: summary.dependencies(),
114114
targets,
115115
features: summary.features(),
116-
manifest_path: &self.manifest_path.display().to_string(),
116+
manifest_path: &self.manifest_path,
117117
metadata: self.manifest.custom_metadata(),
118118
authors,
119119
categories,

0 commit comments

Comments
 (0)