Skip to content

Commit

Permalink
Bump human-panic from 1.2.3 to 2.0.0 (#304)
Browse files Browse the repository at this point in the history
* 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](rust-cli/human-panic@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] <support@github.com>

* use `Metadata` builder for `human-panic`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mari <git@cutegirl.tech>
  • Loading branch information
dependabot[bot] and mellowagain authored Jun 6, 2024
1 parent 9574e91 commit 5d28529
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Up @@ -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",
Expand Down
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: "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();

Expand Down

0 comments on commit 5d28529

Please sign in to comment.