Skip to content

Commit

Permalink
chore(deps): bump the cargo-dependencies group with 4 updates (#64)
Browse files Browse the repository at this point in the history
* chore(deps): bump the cargo-dependencies group with 4 updates

Bumps the cargo-dependencies group with 4 updates: [figment](https://github.com/SergioBenitez/Figment), [human-panic](https://github.com/rust-cli/human-panic), [serde](https://github.com/serde-rs/serde) and [webbrowser](https://github.com/amodm/webbrowser-rs).


Updates `figment` from 0.10.16 to 0.10.18
- [Commits](SergioBenitez/Figment@v0.10.16...v0.10.18)

Updates `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)

Updates `serde` from 1.0.197 to 1.0.198
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](serde-rs/serde@v1.0.197...v1.0.198)

Updates `webbrowser` from 0.8.15 to 1.0.0
- [Release notes](https://github.com/amodm/webbrowser-rs/releases)
- [Changelog](https://github.com/amodm/webbrowser-rs/blob/main/CHANGELOG.md)
- [Commits](amodm/webbrowser-rs@v0.8.15...v1.0.0)

---
updated-dependencies:
- dependency-name: figment
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-dependencies
- dependency-name: human-panic
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: cargo-dependencies
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-dependencies
- dependency-name: webbrowser
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: cargo-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: fix human_panic setup

The setup function doesn't require the manual params. It does the exact
thing as we were doing manually. So, we can remove the manual setup and
use the setup function directly.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh McKinney <joshka@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and joshka committed Apr 26, 2024
1 parent b4bcb93 commit 5c88c82
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 25 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ crates_io_api = "0.11.0"
crossterm = { version = "0.27.0", features = ["serde", "event-stream"] }
derive_deref = "1.1.1"
directories = "5.0.1"
figment = { version = "0.10.16", features = ["env", "toml", "yaml"] }
figment = { version = "0.10.18", features = ["env", "toml", "yaml"] }
futures = "0.3.28"
human-panic = "1.2.0"
human-panic = "2.0.0"
itertools = "0.12.0"
json5 = "0.4.1"
lazy_static = "1.4.0"
Expand All @@ -38,7 +38,7 @@ num-format = "0.4.4"
pretty_assertions = "1.4.0"
ratatui = { version = "0.26.2", features = ["serde", "macros"] }
ratatui-macros = "0.2.3"
serde = { version = "1.0.197", features = ["derive"] }
serde = { version = "1.0.198", features = ["derive"] }
serde_with = "3.7.0"
signal-hook = "0.3.17"
strip-ansi-escapes = "0.2.0"
Expand All @@ -56,7 +56,7 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde", "s
tui-input = "0.8.0"
unicode-width = "0.1.11"
uuid = "1.8.0"
webbrowser = "0.8.15"
webbrowser = "1.0.0"

[build-dependencies]
vergen = { version = "8.2.6", features = [ "build", "git", "git2", "cargo" ]}
Expand Down
12 changes: 1 addition & 11 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn install_hooks() -> Result<()> {
if #[cfg(debug_assertions)] {
install_better_panic();
} else {
install_human_panic();
human_panic::setup_panic!();
}
}
install_color_eyre_panic_hook(panic_hook);
Expand All @@ -41,16 +41,6 @@ fn install_better_panic() {
.install()
}

#[allow(dead_code)]
fn install_human_panic() {
human_panic::setup_panic!(Metadata {
name: env!("CARGO_PKG_NAME").into(),
version: env!("CARGO_PKG_VERSION").into(),
authors: env!("CARGO_PKG_AUTHORS").replace(':', ", ").into(),
homepage: env!("CARGO_PKG_HOMEPAGE").into(),
});
}

fn install_color_eyre_panic_hook(panic_hook: PanicHook) {
// convert from a `color_eyre::config::PanicHook`` to a `Box<dyn
// Fn(&PanicInfo<'_>`
Expand Down

0 comments on commit 5c88c82

Please sign in to comment.