fix(personas): extract RefreshLockObserver type alias to satisfy clippy::type_complexity

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
Duncan
2026-09-01 10:55:02 -04:00
parent 9d23c191dc
commit 5a3e9d3eee

View File

@@ -19,7 +19,9 @@ use super::pending::{prepare_persona_publication, PreparedPersonaPublication};
/// (recreating the TOCTOU race) causes `try_lock()` to succeed, turning the
/// probe test RED.
#[cfg(test)]
pub(crate) static REFRESH_LOCK_OBSERVER: std::sync::Mutex<Option<Box<dyn Fn(&AppState) + Send>>> =
type RefreshLockObserver = Box<dyn Fn(&AppState) + Send>;
#[cfg(test)]
pub(crate) static REFRESH_LOCK_OBSERVER: std::sync::Mutex<Option<RefreshLockObserver>> =
std::sync::Mutex::new(None);
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)]