refactor: Swtich to using bon for builder pattern

This commit is contained in:
Gerald Pinder 2024-09-21 13:15:45 -04:00
parent aed7e275f2
commit 0c52cf6a54
36 changed files with 326 additions and 314 deletions

View file

@ -9,6 +9,7 @@ use std::{
time::Duration,
};
use bon::Builder;
use chrono::Local;
use colored::{control::ShouldColorize, ColoredString, Colorize};
use indicatif::{MultiProgress, ProgressBar};
@ -31,7 +32,6 @@ use log4rs::{
use nu_ansi_term::Color;
use once_cell::sync::Lazy;
use rand::Rng;
use typed_builder::TypedBuilder;
use crate::signal_handler::{add_pid, remove_pid};
@ -258,9 +258,9 @@ impl CommandLogging for Command {
}
}
#[derive(Debug, TypedBuilder)]
#[derive(Debug, Builder)]
struct CustomPatternEncoder {
#[builder(default, setter(into))]
#[builder(default, into)]
filter_modules: Vec<(String, LevelFilter)>,
}