From 33362b88c3ef14c1ed36994f8740cb6e05c6e2fe Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sun, 26 Mar 2023 06:06:18 +0200 Subject: chore: upgrade clap to v4 (#17333) --- cli/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index af373fac2..6d6199bda 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -253,8 +253,8 @@ pub fn main() { let flags = match flags_from_vec(args) { Ok(flags) => flags, Err(err @ clap::Error { .. }) - if err.kind() == clap::ErrorKind::DisplayHelp - || err.kind() == clap::ErrorKind::DisplayVersion => + if err.kind() == clap::error::ErrorKind::DisplayHelp + || err.kind() == clap::error::ErrorKind::DisplayVersion => { err.print().unwrap(); std::process::exit(0); -- cgit v1.2.3