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
|
@ -265,7 +265,7 @@ pub fn init(cx: &mut App) {
|
|||
|
||||
workspace.register_action(|workspace, _: &MaximizePane, window, cx| {
|
||||
let pane = workspace.active_pane();
|
||||
let Some(size) = workspace.bounding_box_for_pane(&pane) else {
|
||||
let Some(size) = workspace.bounding_box_for_pane(pane) else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
@ -1599,7 +1599,7 @@ impl Vim {
|
|||
second_char,
|
||||
smartcase: VimSettings::get_global(cx).use_smartcase_find,
|
||||
};
|
||||
Vim::globals(cx).last_find = Some((&sneak).clone());
|
||||
Vim::globals(cx).last_find = Some(sneak.clone());
|
||||
self.motion(sneak, window, cx)
|
||||
}
|
||||
} else {
|
||||
|
@ -1616,7 +1616,7 @@ impl Vim {
|
|||
second_char,
|
||||
smartcase: VimSettings::get_global(cx).use_smartcase_find,
|
||||
};
|
||||
Vim::globals(cx).last_find = Some((&sneak).clone());
|
||||
Vim::globals(cx).last_find = Some(sneak.clone());
|
||||
self.motion(sneak, window, cx)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue