From 814b0e06aaf1135d8159745c656f3b132b380f4e Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Mon, 9 Sep 2024 21:07:33 +0900 Subject: [PATCH] Use PanicHookInfo in savvy-cli --- savvy-bindgen/src/parse_file.rs | 2 +- savvy-cli/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/savvy-bindgen/src/parse_file.rs b/savvy-bindgen/src/parse_file.rs index e2cdc2e7..54f787ab 100644 --- a/savvy-bindgen/src/parse_file.rs +++ b/savvy-bindgen/src/parse_file.rs @@ -411,7 +411,7 @@ pub fn generate_test_code(parsed_results: &Vec) -> 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 = Vec::new(); let orig_msg = panic_info.to_string(); let mut lines = orig_msg.lines(); diff --git a/savvy-cli/Cargo.toml b/savvy-cli/Cargo.toml index dd8c05cf..cce8a65a 100644 --- a/savvy-cli/Cargo.toml +++ b/savvy-cli/Cargo.toml @@ -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