Fix clippy::needless_borrow lint violations (#36444)
Release Notes: - N/A
This commit is contained in:
parent
eecf142f06
commit
9e0e233319
242 changed files with 801 additions and 821 deletions
|
@ -637,7 +637,7 @@ impl PickerDelegate for OpenPathDelegate {
|
|||
FileIcons::get_folder_icon(false, cx)?
|
||||
} else {
|
||||
let path = path::Path::new(&candidate.path.string);
|
||||
FileIcons::get_icon(&path, cx)?
|
||||
FileIcons::get_icon(path, cx)?
|
||||
};
|
||||
Some(Icon::from_path(icon).color(Color::Muted))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue