mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
optimize ResolutionFetch::resolve_bins
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
4d7be692ce
commit
9aa9458e75
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ impl ResolutionFetch {
|
||||||
// We need to filter crate_bin_files by user_specified_bins in case the prebuilt doesn't
|
// We need to filter crate_bin_files by user_specified_bins in case the prebuilt doesn't
|
||||||
// have featured-gated (optional) binary (gated behind feature).
|
// have featured-gated (optional) binary (gated behind feature).
|
||||||
crate_bin_files
|
crate_bin_files
|
||||||
.iter()
|
.into_iter()
|
||||||
.map(|bin| bin.base_name.clone())
|
.map(|bin| bin.base_name)
|
||||||
.filter(|bin_name| {
|
.filter(|bin_name| {
|
||||||
user_specified_bins
|
user_specified_bins
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue