mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +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')
|
||||
.help_heading(heading::FEATURE_SELECTION)
|
||||
.add(clap_complete::ArgValueCandidates::new(|| {
|
||||
let candidates = get_feature_candidates();
|
||||
candidates.unwrap_or_default()
|
||||
get_feature_candidates().unwrap_or_default()
|
||||
})),
|
||||
)
|
||||
._arg(
|
||||
|
Loading…
x
Reference in New Issue
Block a user