Fix clippy::map_clone lint violations (#36585)

#36577

Release Notes:

- N/A
This commit is contained in:
tidely 2025-08-20 17:34:52 +03:00 committed by GitHub
parent eaf6b56163
commit 92352f97ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View file

@ -1335,7 +1335,7 @@ impl GitPanel {
section.contains(status_entry, repository)
&& status_entry.staging.as_bool() != Some(goal_staged_state)
})
.map(|status_entry| status_entry.clone())
.cloned()
.collect::<Vec<_>>();
(goal_staged_state, entries)