From 5700e5f3d9a964eb23f613fed9b61a49c483cb3f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:48:42 +0000 Subject: [PATCH 1/2] Bump human-panic from 1.2.3 to 2.0.0 Bumps [human-panic](https://github.com/rust-cli/human-panic) from 1.2.3 to 2.0.0. - [Changelog](https://github.com/rust-cli/human-panic/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-cli/human-panic/compare/v1.2.3...v2.0.0) --- updated-dependencies: - dependency-name: human-panic dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4719979..abca180 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1507,9 +1507,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "human-panic" -version = "1.2.3" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4f016c89920bbb30951a8405ecacbb4540db5524313b9445736e7e1855cf370" +checksum = "a4c5d0e9120f6bca6120d142c7ede1ba376dd6bf276d69dd3dbe6cbeb7824179" dependencies = [ "anstream", "anstyle", diff --git a/Cargo.toml b/Cargo.toml index c9adf74..4958ed1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ grok = "2.0.0" hex = "0.4.3" http = "1.1" http-body-util = "0.1.1" -human-panic = "1.1.3" +human-panic = "2.0.0" hyper = { version = "1.2.0", features = [ "http1", "server", From 7e229b182d215c6e5150c81cfdb78f380498d233 Mon Sep 17 00:00:00 2001 From: Mari Date: Thu, 6 Jun 2024 15:52:25 +0200 Subject: [PATCH 2/2] use `Metadata` builder for `human-panic` --- src/main.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 993fca4..6455d6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use fiberplane::base64uuid::Base64Uuid; use fiberplane::models::labels::Label; use fiberplane::models::notebooks::NewNotebook; use fiberplane::models::timestamps::{NewTimeRange, RelativeTimeRange}; -use human_panic::setup_panic; +use human_panic::{setup_panic, Metadata}; use interactive::workspace_picker; use manifest::Manifest; use once_cell::sync::Lazy; @@ -254,12 +254,9 @@ enum SubCommand { async fn main() { // Set the human panic handler first thing first so in case we have a panic when setting // up the CLI, it also gets caught - setup_panic!(Metadata { - name: "fp".into(), - version: env!("CARGO_PKG_VERSION").into(), - authors: "issues@fiberplane.com".into(), - homepage: "https://fiberplane.com".into(), - }); + setup_panic!(Metadata::new("fp", env!("CARGO_PKG_VERSION")) + .authors("issues@fiberplane.com") + .homepage("https://fiberplane.com")); let mut cli_args = env::args();