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

@ -161,7 +161,7 @@ impl SlashCommandOutput {
}
/// Returns this [`SlashCommandOutput`] as a stream of [`SlashCommandEvent`]s.
pub fn to_event_stream(mut self) -> BoxStream<'static, Result<SlashCommandEvent>> {
pub fn into_event_stream(mut self) -> BoxStream<'static, Result<SlashCommandEvent>> {
self.ensure_valid_section_ranges();
let mut events = Vec::new();
@ -363,7 +363,7 @@ mod tests {
run_commands_in_text: false,
};
let events = output.clone().to_event_stream().collect::<Vec<_>>().await;
let events = output.clone().into_event_stream().collect::<Vec<_>>().await;
let events = events
.into_iter()
.filter_map(|event| event.ok())
@ -386,7 +386,7 @@ mod tests {
);
let new_output =
SlashCommandOutput::from_event_stream(output.clone().to_event_stream())
SlashCommandOutput::from_event_stream(output.clone().into_event_stream())
.await
.unwrap();
@ -415,7 +415,7 @@ mod tests {
run_commands_in_text: false,
};
let events = output.clone().to_event_stream().collect::<Vec<_>>().await;
let events = output.clone().into_event_stream().collect::<Vec<_>>().await;
let events = events
.into_iter()
.filter_map(|event| event.ok())
@ -452,7 +452,7 @@ mod tests {
);
let new_output =
SlashCommandOutput::from_event_stream(output.clone().to_event_stream())
SlashCommandOutput::from_event_stream(output.clone().into_event_stream())
.await
.unwrap();
@ -493,7 +493,7 @@ mod tests {
run_commands_in_text: false,
};
let events = output.clone().to_event_stream().collect::<Vec<_>>().await;
let events = output.clone().into_event_stream().collect::<Vec<_>>().await;
let events = events
.into_iter()
.filter_map(|event| event.ok())
@ -562,7 +562,7 @@ mod tests {
);
let new_output =
SlashCommandOutput::from_event_stream(output.clone().to_event_stream())
SlashCommandOutput::from_event_stream(output.clone().into_event_stream())
.await
.unwrap();

View file

@ -166,7 +166,7 @@ impl SlashCommand for ExtensionSlashCommand {
.collect(),
run_commands_in_text: false,
}
.to_event_stream())
.into_event_stream())
})
}
}