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.
This commit is contained in:
parent
bae0892751
commit
3083a44e02
2 changed files with 1 additions and 2 deletions
|
|
@ -557,7 +557,7 @@ async fn run_with_app(app: &mut App, request: Request) -> Result<serde_json::Val
|
||||||
Ok(json!(app.state_view()))
|
Ok(json!(app.state_view()))
|
||||||
}
|
}
|
||||||
Request::UndoDelete => {
|
Request::UndoDelete => {
|
||||||
let restored = app.undo_delete()?;
|
app.undo_delete()?;
|
||||||
app.save_vault()?;
|
app.save_vault()?;
|
||||||
Ok(json!(app.state_view()))
|
Ok(json!(app.state_view()))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,6 @@ pub fn set_profile_picture(
|
||||||
stored.picture.clone(),
|
stored.picture.clone(),
|
||||||
stored.nip05.clone(),
|
stored.nip05.clone(),
|
||||||
);
|
);
|
||||||
drop(stored);
|
|
||||||
let summary = ProfileSummary {
|
let summary = ProfileSummary {
|
||||||
label,
|
label,
|
||||||
npub,
|
npub,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue