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:
parent
a32a264508
commit
cf7c64d77f
92 changed files with 277 additions and 345 deletions
|
@ -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)))
|
||||
|
|
|
@ -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")))
|
||||
|
|
|
@ -85,7 +85,7 @@ impl SlashCommand for DefaultSlashCommand {
|
|||
text,
|
||||
run_commands_in_text: true,
|
||||
}
|
||||
.to_event_stream())
|
||||
.into_event_stream())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
})
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ impl SlashCommand for FetchSlashCommand {
|
|||
}],
|
||||
run_commands_in_text: false,
|
||||
}
|
||||
.to_event_stream())
|
||||
.into_event_stream())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)?;
|
||||
}
|
||||
|
|
|
@ -66,6 +66,6 @@ impl SlashCommand for NowSlashCommand {
|
|||
}],
|
||||
run_commands_in_text: false,
|
||||
}
|
||||
.to_event_stream()))
|
||||
.into_event_stream()))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ impl SlashCommand for PromptSlashCommand {
|
|||
}],
|
||||
run_commands_in_text: true,
|
||||
}
|
||||
.to_event_stream())
|
||||
.into_event_stream())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ impl SlashCommand for OutlineSlashCommand {
|
|||
text: outline_text,
|
||||
run_commands_in_text: false,
|
||||
}
|
||||
.to_event_stream())
|
||||
.into_event_stream())
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
@ -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())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue