From 3083a44e025a86dd7db9dbc58def92aeb8818a08 Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 1 Sep 2026 10:45:44 -0500 Subject: [PATCH] chore: fix two clippy warnings Drop the no-op drop(stored) of a &mut reference in profiles.rs and stop binding the unused ProfileSummary returned by app.undo_delete() in the IPC UndoDelete handler. Clippy --all-targets is now warning-free. --- src/ipc.rs | 2 +- src/profiles.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ipc.rs b/src/ipc.rs index 1cc7e65..744fd6f 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -557,7 +557,7 @@ async fn run_with_app(app: &mut App, request: Request) -> Result { - let restored = app.undo_delete()?; + app.undo_delete()?; app.save_vault()?; Ok(json!(app.state_view())) } diff --git a/src/profiles.rs b/src/profiles.rs index 77da462..6ebb7f4 100644 --- a/src/profiles.rs +++ b/src/profiles.rs @@ -247,7 +247,6 @@ pub fn set_profile_picture( stored.picture.clone(), stored.nip05.clone(), ); - drop(stored); let summary = ProfileSummary { label, npub,