aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-03-16 13:15:07 +0100
committerGitHub <noreply@github.com>2022-03-16 13:15:07 +0100
commitc2e388f339c50dfdc6e74fc210a5511e5a0dbea2 (patch)
treebd7a2c0c188c0bac8018ea4da0d5d19ee8d6c1a5
parentchore(update): pretty-bytes `0.2` -> `0.2.2` (#1224) (diff)
downloadsl0ppij-c2e388f339c50dfdc6e74fc210a5511e5a0dbea2.tar.gz
sl0ppij-c2e388f339c50dfdc6e74fc210a5511e5a0dbea2.tar.xz
sl0ppij-c2e388f339c50dfdc6e74fc210a5511e5a0dbea2.zip
fix: deprecated function in clap (#1225)
`CommandFactory::into_app()` is deprecated in favor of `CommandFactory::command()`
-rw-r--r--zellij-utils/src/setup.rs2
1 files changed, 1 insertions, 1 deletions
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 => {}