From a5efc0fc4a695561602887090acf382a9a726e7c Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 23 May 2024 14:41:27 +0200 Subject: [PATCH] chore: update libpt and adjust to breaking changes --- Cargo.toml | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3b119d7..b6189ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://git.cscherr.de/PlexSheep/hedu" keywords = ["hexdumper"] [dependencies] -libpt = { version = "0.3.11", features = ["log", "bintols"] } +libpt = { version = "0.5.1", features = ["log", "bintols"] } clap = { version = "4.4.4", features = ["derive", "help"] } clap-num = { version = "1.0.2" } clap-verbosity-flag = { version = "2.0.1" } diff --git a/src/main.rs b/src/main.rs index aa0be7c..0d9bb64 100644 --- a/src/main.rs +++ b/src/main.rs @@ -130,10 +130,10 @@ fn cli_parse() -> Cli { } }; if cli.meta { - Logger::init(None, Some(ll), false).expect("could not initialize Logger"); + let _ = Logger::builder().max_level(ll).build(); } else { // less verbose version - Logger::init_mini(Some(ll)).expect("could not initialize Logger"); + let _ = Logger::builder().build(); } cli }