From 342aaf43d3bf6d0f4e28130c9f0321ea30ded42d Mon Sep 17 00:00:00 2001 From: Duncan Date: Wed, 5 Aug 2026 17:36:57 -0400 Subject: [PATCH] fix(desktop): extract ObserverFn type alias to appease clippy::type_complexity The thread_local OBSERVER field had an inline complex type that triggered -D clippy::type_complexity on the push hook. Extract it to a type alias. Co-authored-by: Will Pfleger Signed-off-by: Will Pfleger --- desktop/src-tauri/src/commands/identity_archive/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/src-tauri/src/commands/identity_archive/mod.rs b/desktop/src-tauri/src/commands/identity_archive/mod.rs index 3ff00a35a..6368e930f 100644 --- a/desktop/src-tauri/src/commands/identity_archive/mod.rs +++ b/desktop/src-tauri/src/commands/identity_archive/mod.rs @@ -360,8 +360,10 @@ pub(crate) async fn scoped_archive_operation( pub(crate) mod test_hooks { use std::{cell::RefCell, sync::Arc}; + type ObserverFn = Arc; + thread_local! { - static OBSERVER: RefCell>> = + static OBSERVER: RefCell> = const { RefCell::new(None) }; static ATTEMPT_COUNT: RefCell = const { RefCell::new(0) }; }