From 5a3e9d3eeeb9b2912964251c2a760c668b430bae Mon Sep 17 00:00:00 2001 From: Duncan Date: Tue, 1 Sep 2026 10:55:02 -0400 Subject: [PATCH] fix(personas): extract RefreshLockObserver type alias to satisfy clippy::type_complexity Co-authored-by: Will Pfleger Signed-off-by: Will Pfleger --- desktop/src-tauri/src/commands/personas/sharing.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/src-tauri/src/commands/personas/sharing.rs b/desktop/src-tauri/src/commands/personas/sharing.rs index 3c37cf8362..24c4d6be5d 100644 --- a/desktop/src-tauri/src/commands/personas/sharing.rs +++ b/desktop/src-tauri/src/commands/personas/sharing.rs @@ -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>> = +type RefreshLockObserver = Box; +#[cfg(test)] +pub(crate) static REFRESH_LOCK_OBSERVER: std::sync::Mutex> = std::sync::Mutex::new(None); #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)]