Fix clippy::needless_borrow lint violations (#36444)
Release Notes: - N/A
This commit is contained in:
parent
e72add7197
commit
455a95c81d
242 changed files with 801 additions and 821 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue