mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
refactor(complete): Simplify error handling
This commit is contained in:
parent
1d32564c02
commit
bbb8bec876
@ -253,8 +253,7 @@ pub trait CommandExt: Sized {
|
|||||||
.short('F')
|
.short('F')
|
||||||
.help_heading(heading::FEATURE_SELECTION)
|
.help_heading(heading::FEATURE_SELECTION)
|
||||||
.add(clap_complete::ArgValueCandidates::new(|| {
|
.add(clap_complete::ArgValueCandidates::new(|| {
|
||||||
let candidates = get_feature_candidates();
|
get_feature_candidates().unwrap_or_default()
|
||||||
candidates.unwrap_or_default()
|
|
||||||
})),
|
})),
|
||||||
)
|
)
|
||||||
._arg(
|
._arg(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user