Skip to content

Commit

Permalink
Use PanicHookInfo in savvy-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Sep 9, 2024
1 parent dea29d3 commit 814b0e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion savvy-bindgen/src/parse_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ pub fn generate_test_code(parsed_results: &Vec<ParsedResult>) -> String {
#[allow(unused_imports)]
use savvy::savvy;

pub(crate) fn savvy_show_error(code: &str, label: &str, location: &str, panic_info: &std::panic::PanicInfo) {
pub(crate) fn savvy_show_error(code: &str, label: &str, location: &str, panic_info: &std::panic::PanicHookInfo) {
let mut msg: Vec<String> = Vec::new();
let orig_msg = panic_info.to_string();
let mut lines = orig_msg.lines();
Expand Down
4 changes: 2 additions & 2 deletions savvy-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository.workspace = true
homepage.workspace = true
readme = "README.md"

# clap requires 1.74
rust-version = "1.74"
# PanicHookInfo is introduced in 1.81
rust-version = "1.81"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit 814b0e0

Please sign in to comment.