mirror of
https://github.com/zhaofengli/colmena.git
synced 2024-09-11 09:45:28 +03:00
Fix lint
This commit is contained in:
parent
15a95d6de5
commit
665603956a
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) {
|
||||
let bin_name = cmd.get_bin_name()
|
||||
let bin_name = cmd
|
||||
.get_bin_name()
|
||||
.expect("Must have a bin_name")
|
||||
.to_string();
|
||||
|
||||
clap_complete::generate(
|
||||
shell,
|
||||
cmd,
|
||||
bin_name,
|
||||
&mut std::io::stdout(),
|
||||
);
|
||||
clap_complete::generate(shell, cmd, bin_name, &mut std::io::stdout());
|
||||
}
|
||||
|
||||
fn set_color_pref(when: &ColorWhen) {
|
||||
|
Loading…
Reference in New Issue
Block a user