From 0f400096b14c7c6a013f8c2a8ac85b847a4e5c14 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 11 Jul 2025 18:14:51 +0000 Subject: [PATCH] lints --- libs/neon_failpoint/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/neon_failpoint/src/lib.rs b/libs/neon_failpoint/src/lib.rs index 3610f365a9..0cf860ef05 100644 --- a/libs/neon_failpoint/src/lib.rs +++ b/libs/neon_failpoint/src/lib.rs @@ -25,10 +25,12 @@ use tokio_util::sync::CancellationToken; pub mod macros; pub use either; // re-export for use in macros +/// Type alias for the global failpoint registry to reduce complexity +type FailpointRegistry = Arc>>>; + /// Global failpoint registry // TODO: switch to simple_rcu, but it's in `utils` -static FAILPOINTS: Lazy>>>> = - Lazy::new(|| Default::default()); +static FAILPOINTS: Lazy = Lazy::new(Default::default); /// Configuration for a single failpoint #[derive(Debug)] @@ -252,7 +254,7 @@ pub fn list() -> Vec<(impl std::fmt::Display, impl std::fmt::Display)> { .read() .unwrap() .iter() - .map(|(name, config)| (name.clone(), format!("{:?}", config))) + .map(|(name, config)| (name.clone(), format!("{config:?}"))) .collect::>() }