From 665603956a1c3040d756987bc7a810ffe86a3b15 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 5 Nov 2023 01:05:28 -0700 Subject: [PATCH] Fix lint --- src/cli.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 0854019..7acc241 100644 --- a/src/cli.rs +++ b/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) {