Skip to content

Commit bbb8bec

Browse files
committed
refactor(complete): Simplify error handling
1 parent 1d32564 commit bbb8bec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ pub trait CommandExt: Sized {
253253
.short('F')
254254
.help_heading(heading::FEATURE_SELECTION)
255255
.add(clap_complete::ArgValueCandidates::new(|| {
256-
let candidates = get_feature_candidates();
257-
candidates.unwrap_or_default()
256+
get_feature_candidates().unwrap_or_default()
258257
})),
259258
)
260259
._arg(

0 commit comments

Comments
 (0)