|
|
@ -368,12 +368,12 @@ impl CrateData { |
|
|
|
.position(|pkg| pkg.name == manifest.package.name) |
|
|
|
.position(|pkg| pkg.name == manifest.package.name) |
|
|
|
.ok_or_else(|| format_err!("failed to find package in metadata"))?; |
|
|
|
.ok_or_else(|| format_err!("failed to find package in metadata"))?; |
|
|
|
|
|
|
|
|
|
|
|
return Ok(CrateData { |
|
|
|
Ok(CrateData { |
|
|
|
data, |
|
|
|
data, |
|
|
|
manifest, |
|
|
|
manifest, |
|
|
|
current_idx, |
|
|
|
current_idx, |
|
|
|
out_name, |
|
|
|
out_name, |
|
|
|
}); |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Read the `manifest_path` file and deserializes it using the toml Deserializer.
|
|
|
|
/// Read the `manifest_path` file and deserializes it using the toml Deserializer.
|
|
|
|