lints: A bunch of extra style lint fixes (#36568)

- **lints: Fix 'doc_lazy_continuation'**
- **lints: Fix 'doc_overindented_list_items'**
- **inherent_to_string and io_other_error**
- **Some more lint fixes**
- **lints: enable bool_assert_comparison, match_like_matches_macro and
wrong_self_convention**


Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-20 12:05:58 +02:00 committed by GitHub
parent a32a264508
commit cf7c64d77f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
92 changed files with 277 additions and 345 deletions

View file

@ -150,7 +150,7 @@ impl SlashCommand for CargoWorkspaceSlashCommand {
}],
run_commands_in_text: false,
}
.to_event_stream())
.into_event_stream())
})
});
output.unwrap_or_else(|error| Task::ready(Err(error)))

View file

@ -191,7 +191,7 @@ impl SlashCommand for ContextServerSlashCommand {
text: prompt,
run_commands_in_text: false,
}
.to_event_stream())
.into_event_stream())
})
} else {
Task::ready(Err(anyhow!("Context server not found")))

View file

@ -85,7 +85,7 @@ impl SlashCommand for DefaultSlashCommand {
text,
run_commands_in_text: true,
}
.to_event_stream())
.into_event_stream())
})
}
}

View file

@ -118,7 +118,7 @@ impl SlashCommand for DeltaSlashCommand {
}
anyhow::ensure!(changes_detected, "no new changes detected");
Ok(output.to_event_stream())
Ok(output.into_event_stream())
})
}
}

View file

@ -189,7 +189,7 @@ impl SlashCommand for DiagnosticsSlashCommand {
window.spawn(cx, async move |_| {
task.await?
.map(|output| output.to_event_stream())
.map(|output| output.into_event_stream())
.context("No diagnostics found")
})
}

View file

@ -177,7 +177,7 @@ impl SlashCommand for FetchSlashCommand {
}],
run_commands_in_text: false,
}
.to_event_stream())
.into_event_stream())
})
}
}

View file

@ -371,7 +371,7 @@ fn collect_files(
&mut output,
)
.log_err();
let mut buffer_events = output.to_event_stream();
let mut buffer_events = output.into_event_stream();
while let Some(event) = buffer_events.next().await {
events_tx.unbounded_send(event)?;
}

View file

@ -66,6 +66,6 @@ impl SlashCommand for NowSlashCommand {
}],
run_commands_in_text: false,
}
.to_event_stream()))
.into_event_stream()))
}
}

View file

@ -117,7 +117,7 @@ impl SlashCommand for PromptSlashCommand {
}],
run_commands_in_text: true,
}
.to_event_stream())
.into_event_stream())
})
}
}

View file

@ -92,7 +92,7 @@ impl SlashCommand for OutlineSlashCommand {
text: outline_text,
run_commands_in_text: false,
}
.to_event_stream())
.into_event_stream())
})
});

View file

@ -157,7 +157,7 @@ impl SlashCommand for TabSlashCommand {
for (full_path, buffer, _) in tab_items_search.await? {
append_buffer_to_output(&buffer, full_path.as_deref(), &mut output).log_err();
}
Ok(output.to_event_stream())
Ok(output.into_event_stream())
})
}
}