Fix clippy::needless_borrow lint violations (#36444)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-18 23:54:35 +02:00 committed by Orual
parent e72add7197
commit 455a95c81d
No known key found for this signature in database
242 changed files with 801 additions and 821 deletions

View file

@ -224,7 +224,7 @@ impl ProjectItem for ImageItem {
path: &ProjectPath,
cx: &mut App,
) -> Option<Task<anyhow::Result<Entity<Self>>>> {
if is_image_file(&project, &path, cx) {
if is_image_file(project, path, cx) {
Some(cx.spawn({
let path = path.clone();
let project = project.clone();