mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-09 05:20:03 +00:00
Refactor: Use binstall_v1::MetaData
in mod binstall
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
05c0d5fcae
commit
2f27a5fd93
6 changed files with 51 additions and 82 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue