Fix clippy::needless_borrow lint violations (#36444)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-18 23:54:35 +02:00 committed by GitHub
parent eecf142f06
commit 9e0e233319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
242 changed files with 801 additions and 821 deletions

View file

@ -346,7 +346,7 @@ impl TerminalPanel {
pane::Event::RemovedItem { .. } => self.serialize(cx),
pane::Event::Remove { focus_on_pane } => {
let pane_count_before_removal = self.center.panes().len();
let _removal_result = self.center.remove(&pane);
let _removal_result = self.center.remove(pane);
if pane_count_before_removal == 1 {
self.center.first_pane().update(cx, |pane, cx| {
pane.set_zoomed(false, cx);
@ -1181,10 +1181,10 @@ impl Render for TerminalPanel {
registrar.size_full().child(self.center.render(
workspace.zoomed_item(),
&workspace::PaneRenderContext {
follower_states: &&HashMap::default(),
follower_states: &HashMap::default(),
active_call: workspace.active_call(),
active_pane: &self.active_pane,
app_state: &workspace.app_state(),
app_state: workspace.app_state(),
project: workspace.project(),
workspace: &workspace.weak_handle(),
},

View file

@ -1604,15 +1604,15 @@ impl Item for TerminalView {
TaskStatus::Running => (
IconName::PlayFilled,
Color::Disabled,
TerminalView::rerun_button(&terminal_task),
TerminalView::rerun_button(terminal_task),
),
TaskStatus::Unknown => (
IconName::Warning,
Color::Warning,
TerminalView::rerun_button(&terminal_task),
TerminalView::rerun_button(terminal_task),
),
TaskStatus::Completed { success } => {
let rerun_button = TerminalView::rerun_button(&terminal_task);
let rerun_button = TerminalView::rerun_button(terminal_task);
if *success {
(IconName::Check, Color::Success, rerun_button)