Skip to content

Commit

Permalink
use Metadata builder for human-panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mellowagain committed Jun 6, 2024
1 parent 5700e5f commit 7e229b1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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: "[email protected]".into(),
homepage: "https://fiberplane.com".into(),
});
setup_panic!(Metadata::new("fp", env!("CARGO_PKG_VERSION"))
.authors("[email protected]")
.homepage("https://fiberplane.com"));

let mut cli_args = env::args();

Expand Down

0 comments on commit 7e229b1

Please sign in to comment.