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::>() }