Fix args.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-08-03 13:42:19 +10:00 committed by GitHub
parent f2f7ddc287
commit 73303aaec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -613,22 +613,21 @@ You cannot use --{option} and specify multiple packages at the same time. Do one
_ => (),
}
(
opts,
PkgOverride {
pkg_url: opts.pkg_url,
pkg_fmt: opts.pkg_fmt,
bin_dir: opts.bin_dir,
let cli_overrides = PkgOverride {
pkg_url: opts.pkg_url.take(),
pkg_fmt: opts.pkg_fmt.take(),
bin_dir: opts.bin_dir.take(),
disabled_strategies: (!opts.disable_strategies.is_empty() || has_strategies_override).then(|| {
opts.disable_strategies
.into_iter()
.iter()
.map(|strategy| strategy.0)
.collect::<Vec<_>>()
.into_boxed_slice()
}),
signing: None,
},
)
};
(opts, cli_overrides)
}
#[cfg(test)]