Auto-fix clippy::collapsible_if violations (#36428)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-19 15:27:24 +02:00 committed by GitHub
parent 9e8ec72bd5
commit 8f567383e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
281 changed files with 6628 additions and 7089 deletions

View file

@ -227,10 +227,10 @@ where
tasks.retain_mut(|(task_source_kind, target_task)| {
if predicate((task_source_kind, target_task)) {
if let Some(overrides) = &overrides {
if let Some(target_override) = overrides.reveal_target {
target_task.reveal_target = target_override;
}
if let Some(overrides) = &overrides
&& let Some(target_override) = overrides.reveal_target
{
target_task.reveal_target = target_override;
}
workspace.schedule_task(
task_source_kind.clone(),
@ -343,11 +343,10 @@ pub fn task_contexts(
task_contexts.lsp_task_sources = lsp_task_sources;
task_contexts.latest_selection = latest_selection;
if let Some(editor_context_task) = editor_context_task {
if let Some(editor_context) = editor_context_task.await {
task_contexts.active_item_context =
Some((active_worktree, location, editor_context));
}
if let Some(editor_context_task) = editor_context_task
&& let Some(editor_context) = editor_context_task.await
{
task_contexts.active_item_context = Some((active_worktree, location, editor_context));
}
if let Some(active_worktree) = active_worktree {