Enable clippy::borrow_deref_ref (#8894)

This PR enables the
[`clippy::borrow_deref_ref`](https://rust-lang.github.io/rust-clippy/master/index.html#/borrow_deref_ref)
rule and fixes the outstanding violations.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-03-05 12:24:54 -05:00
committed by GitHub
parent a25edcc5a8
commit b6af393e6d
13 changed files with 67 additions and 68 deletions
+1 -1
View File
@@ -1164,7 +1164,7 @@ impl Pane {
matches!(
WorkspaceSettings::get_global(cx).autosave,
AutosaveSetting::OnFocusChange | AutosaveSetting::OnWindowChange
) && Self::can_autosave_item(&*item, cx)
) && Self::can_autosave_item(item, cx)
})?;
if !will_autosave {
let answer = pane.update(cx, |pane, cx| {