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
|
@ -1627,8 +1627,7 @@ impl Pane {
|
|||
items_to_close
|
||||
.iter()
|
||||
.filter(|item| {
|
||||
item.is_dirty(cx)
|
||||
&& !Self::skip_save_on_close(item.as_ref(), &workspace, cx)
|
||||
item.is_dirty(cx) && !Self::skip_save_on_close(item.as_ref(), workspace, cx)
|
||||
})
|
||||
.map(|item| item.boxed_clone())
|
||||
.collect::<Vec<_>>()
|
||||
|
@ -1657,7 +1656,7 @@ impl Pane {
|
|||
let mut should_save = true;
|
||||
if save_intent == SaveIntent::Close {
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
if Self::skip_save_on_close(item_to_close.as_ref(), &workspace, cx) {
|
||||
if Self::skip_save_on_close(item_to_close.as_ref(), workspace, cx) {
|
||||
should_save = false;
|
||||
}
|
||||
})?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue