Refactor: Use binstall_v1::MetaData in mod binstall

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-27 19:44:16 +10:00
parent 05c0d5fcae
commit 2f27a5fd93
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
6 changed files with 51 additions and 82 deletions

View file

@ -344,11 +344,7 @@ async fn entry(jobserver_client: LazyJobserverClient) -> Result<()> {
block_in_place(|| {
if !custom_install_path {
debug!("Writing .crates.toml");
metafiles::v1::CratesToml::append(
metadata_vec
.iter()
.map(|metadata| (&metadata.cvs, metadata.bins.clone())),
)?;
metafiles::v1::CratesToml::append(metadata_vec.iter())?;
}
if opts.no_cleanup {