Auto-fix clippy::collapsible_if violations (#36428)
Release Notes: - N/A
This commit is contained in:
parent
9e8ec72bd5
commit
8f567383e4
281 changed files with 6628 additions and 7089 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue