Skip to content

Commit

Permalink
fix(utils): fixed human painc upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
zaghaghi committed May 5, 2024
1 parent 8454e63 commit 7ae823a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "openapi-tui"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
description = "This TUI allows you to list and browse APIs described by the openapi specification."

Expand Down
9 changes: 3 additions & 6 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,9 @@ pub fn initialize_panic_handler() -> Result<()> {
#[cfg(not(debug_assertions))]
{
use human_panic::{handle_dump, print_msg, Metadata};
let meta = Metadata {
version: env!("CARGO_PKG_VERSION").into(),
name: env!("CARGO_PKG_NAME").into(),
authors: env!("CARGO_PKG_AUTHORS").replace(':', ", ").into(),
homepage: env!("CARGO_PKG_HOMEPAGE").into(),
};
let meta = Metadata::new(env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"))
.authors(env!("CARGO_PKG_AUTHORS").replace(':', ", "))
.homepage(env!("CARGO_PKG_HOMEPAGE"));

let file_path = handle_dump(&meta, panic_info);
// prints human-panic message
Expand Down

0 comments on commit 7ae823a

Please sign in to comment.