mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 23:56:37 +00:00
Fix args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
f2f7ddc287
commit
73303aaec4
1 changed files with 13 additions and 14 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue