From c2e388f339c50dfdc6e74fc210a5511e5a0dbea2 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Wed, 16 Mar 2022 13:15:07 +0100 Subject: [PATCH] fix: deprecated function in clap (#1225) `CommandFactory::into_app()` is deprecated in favor of `CommandFactory::command()` --- zellij-utils/src/setup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zellij-utils/src/setup.rs b/zellij-utils/src/setup.rs index 0912e016..406a3185 100644 --- a/zellij-utils/src/setup.rs +++ b/zellij-utils/src/setup.rs @@ -392,7 +392,7 @@ impl Setup { } }; let mut out = std::io::stdout(); - clap_complete::generate(shell, &mut CliArgs::into_app(), "zellij", &mut out); + clap_complete::generate(shell, &mut CliArgs::command(), "zellij", &mut out); // add shell dependent extra completion match shell { Shell::Bash => {}