Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PanicHookInfo in savvy-cli #296

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading