mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 04:00:02 +00:00
Formatting
This commit is contained in:
parent
e8464aba3d
commit
fbf26634c9
2 changed files with 8 additions and 8 deletions
|
@ -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
Add a link
Reference in a new issue