forked from DGNum/colmena
Fix lint
This commit is contained in:
parent
15a95d6de5
commit
665603956a
1 changed files with 3 additions and 7 deletions
10
src/cli.rs
10
src/cli.rs
|
@ -316,16 +316,12 @@ pub async fn run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_completions(shell: Shell, cmd: &mut clap::Command) {
|
fn print_completions(shell: Shell, cmd: &mut clap::Command) {
|
||||||
let bin_name = cmd.get_bin_name()
|
let bin_name = cmd
|
||||||
|
.get_bin_name()
|
||||||
.expect("Must have a bin_name")
|
.expect("Must have a bin_name")
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
clap_complete::generate(
|
clap_complete::generate(shell, cmd, bin_name, &mut std::io::stdout());
|
||||||
shell,
|
|
||||||
cmd,
|
|
||||||
bin_name,
|
|
||||||
&mut std::io::stdout(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_color_pref(when: &ColorWhen) {
|
fn set_color_pref(when: &ColorWhen) {
|
||||||
|
|
Loading…
Reference in a new issue