fix entry.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-08-03 11:23:15 +10:00 committed by GitHub
parent 2481a74e00
commit 75a8f99cde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,8 +85,8 @@ pub fn install_crates(
pkg_url: args.pkg_url,
pkg_fmt: args.pkg_fmt,
bin_dir: args.bin_dir,
disabled_strategies: (!args.disabled_strategies.is_empty()).then_some(|| {
args.disabled_strategies
disabled_strategies: (!args.disable_strategies.is_empty()).then_some(|| {
args.disable_strategies
.into_iter()
.map(|strategy| strategy.0)
.collect()