mirror of
https://github.com/block/buzz.git
synced 2026-10-29 13:31:44 +00:00
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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user