mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Formatting
This commit is contained in:
parent
e8464aba3d
commit
fbf26634c9
2 changed files with 8 additions and 8 deletions
|
@ -47,7 +47,9 @@ impl BinFile {
|
|||
let dest = data.install_path.join(dest_file_path);
|
||||
|
||||
// Link at install dir + base-name{.extension}
|
||||
let link = data.install_path.join(&ctx.render("{ bin }{ binary-ext }")?);
|
||||
let link = data
|
||||
.install_path
|
||||
.join(&ctx.render("{ bin }{ binary-ext }")?);
|
||||
|
||||
Ok(Self {
|
||||
base_name,
|
||||
|
|
|
@ -91,13 +91,11 @@ pub async fn fetch_crate_cratesio(
|
|||
};
|
||||
|
||||
// Locate matching version
|
||||
let version_iter = base_info.versions.iter().filter_map(|v| {
|
||||
if !v.yanked {
|
||||
Some(&v.num)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
});
|
||||
let version_iter =
|
||||
base_info
|
||||
.versions
|
||||
.iter()
|
||||
.filter_map(|v| if !v.yanked { Some(&v.num) } else { None });
|
||||
let version_name = find_version(version_req, version_iter)?;
|
||||
|
||||
// Fetch information for the filtered version
|
||||
|
|
Loading…
Add table
Reference in a new issue