From cfe04f849bcaa49ceaff80d0efc315ae3b952a47 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 18 Oct 2021 21:43:42 +0200 Subject: Update clap --- tests/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cli.rs') diff --git a/tests/cli.rs b/tests/cli.rs index 8c88c93..7c3c972 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -32,10 +32,10 @@ fn version_shows() -> Result<(), Error> { #[test] /// Print completions and exit. fn print_completions() -> Result<(), Error> { - for shell in &Shell::variants() { + for shell in Shell::arg_values() { Command::cargo_bin("miniserve")? .arg("--print-completions") - .arg(&shell) + .arg(shell.get_name()) .assert() .success(); } -- cgit v1.2.3