mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Fix fmt in args.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
73303aaec4
commit
0437171cda
1 changed files with 10 additions and 8 deletions
|
@ -617,16 +617,18 @@ You cannot use --{option} and specify multiple packages at the same time. Do one
|
||||||
pkg_url: opts.pkg_url.take(),
|
pkg_url: opts.pkg_url.take(),
|
||||||
pkg_fmt: opts.pkg_fmt.take(),
|
pkg_fmt: opts.pkg_fmt.take(),
|
||||||
bin_dir: opts.bin_dir.take(),
|
bin_dir: opts.bin_dir.take(),
|
||||||
disabled_strategies: (!opts.disable_strategies.is_empty() || has_strategies_override).then(|| {
|
disabled_strategies: (!opts.disable_strategies.is_empty() || has_strategies_override).then(
|
||||||
opts.disable_strategies
|
|| {
|
||||||
.iter()
|
opts.disable_strategies
|
||||||
.map(|strategy| strategy.0)
|
.iter()
|
||||||
.collect::<Vec<_>>()
|
.map(|strategy| strategy.0)
|
||||||
.into_boxed_slice()
|
.collect::<Vec<_>>()
|
||||||
}),
|
.into_boxed_slice()
|
||||||
|
},
|
||||||
|
),
|
||||||
signing: None,
|
signing: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
(opts, cli_overrides)
|
(opts, cli_overrides)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue