From 71f809ddaae9f607646a516ba11b25b8da0c119e Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sat, 9 Aug 2025 18:37:50 +0000 Subject: [PATCH] Fix clippy lints from nightly (2025-08-09) --- Cargo.toml | 1 - bon-macros/src/error/panic_context.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c90543eb..0bee51df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,7 +116,6 @@ ref_option_ref = "warn" rest_pat_in_fully_bound_structs = "warn" same_functions_in_if_condition = "warn" string_lit_as_bytes = "warn" -string_to_string = "warn" suboptimal_flops = "warn" suspicious_operation_groupings = "warn" suspicious_xor_used_as_pow = "warn" diff --git a/bon-macros/src/error/panic_context.rs b/bon-macros/src/error/panic_context.rs index 21f31c42..13b56c8c 100644 --- a/bon-macros/src/error/panic_context.rs +++ b/bon-macros/src/error/panic_context.rs @@ -89,6 +89,7 @@ impl PanicListener { pub(super) struct PanicContext(Rc); struct PanicContextShared { + #[allow(clippy::incompatible_msrv)] backtrace: backtrace::Backtrace, location: Option, @@ -101,6 +102,7 @@ struct PanicContextShared { } impl PanicContext { + #[allow(clippy::incompatible_msrv)] fn from_std(std_panic_info: &StdPanicHookInfo<'_>, panics_count: usize) -> Self { let location = std_panic_info.location(); let current_thread = std::thread::current();