From 628a3089d0f93852eb1bc78299046f8e70756304 Mon Sep 17 00:00:00 2001 From: Vincent Siles Date: Tue, 10 Dec 2024 08:30:00 +0100 Subject: [PATCH] bump human-panic to avoid deprecation warning --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- src/main.rs | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5f3cd876..6ba14d86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -1308,9 +1308,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "human-panic" -version = "1.2.3" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4f016c89920bbb30951a8405ecacbb4540db5524313b9445736e7e1855cf370" +checksum = "80b84a66a325082740043a6c28bbea400c129eac0d3a27673a1de971e44bf1f7" dependencies = [ "anstream", "anstyle", diff --git a/Cargo.toml b/Cargo.toml index 582d0703..a2de8964 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ diff-struct = { version = "0.5.3", optional = true } flate2 = "1" hex = "0.4.3" home = "0.5.5" -human-panic = "1" +human-panic = "2" miette = { version = "5.10.0", features = ["fancy"] } protobuf = { version = "3.3.0", optional = true } protobuf-parse = { version = "3.3.0", optional = true } diff --git a/src/main.rs b/src/main.rs index d8b8f3af..53644651 100644 --- a/src/main.rs +++ b/src/main.rs @@ -154,8 +154,6 @@ enum LockfileCommand { PrintFiles, } -// setup_panic! is failing: use of deprecated type alias std::panic::PanicInfo -#[allow(deprecated)] #[tokio::main(flavor = "current_thread")] async fn main() -> miette::Result<()> { human_panic::setup_panic!();