From 95cdcfa781c0bf33ebdba4c2c11138965d92707a Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Mon, 2 Dec 2024 14:44:11 -0500 Subject: [PATCH] Support clap_verbosity_flag 3 --- src/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5a062bb..8be5be6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ #![warn(clippy::pedantic)] use clap::Parser; +use clap_verbosity_flag::log::LevelFilter; use indicatif::{MultiProgress, ProgressDrawTarget}; use indicatif_log_bridge::LogWrapper; use log::{error, info}; @@ -40,13 +41,13 @@ fn main_detail() -> Result<(), Box> { } let log_level = match options.verbose.log_level_filter() { - clap_verbosity_flag::LevelFilter::Off => "off", - clap_verbosity_flag::LevelFilter::Error => "error", - clap_verbosity_flag::LevelFilter::Warn => "warn", + LevelFilter::Off => "off", + LevelFilter::Error => "error", + LevelFilter::Warn => "warn", - clap_verbosity_flag::LevelFilter::Info => "info", - clap_verbosity_flag::LevelFilter::Debug => "debug", - clap_verbosity_flag::LevelFilter::Trace => "trace", + LevelFilter::Info => "info", + LevelFilter::Debug => "debug", + LevelFilter::Trace => "trace", }; let multi_progress = if options.global.no_progress {