Remove unneeded anonymous lifetimes from gpui::Context (#27686)

This PR removes a number of unneeded anonymous lifetimes from usages of
`gpui::Context`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-28 15:26:30 -04:00 committed by GitHub
parent e90411efa2
commit b5dc09c0ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 80 additions and 87 deletions

View file

@ -2960,7 +2960,7 @@ impl LocalLspStore {
fn remove_worktree(
&mut self,
id_to_remove: WorktreeId,
cx: &mut Context<'_, LspStore>,
cx: &mut Context<LspStore>,
) -> Vec<LanguageServerId> {
self.diagnostics.remove(&id_to_remove);
self.prettier_store.update(cx, |prettier_store, cx| {
@ -3567,7 +3567,7 @@ impl LspStore {
client: AnyProtoClient,
upstream_project_id: u64,
request: R,
cx: &mut Context<'_, LspStore>,
cx: &mut Context<LspStore>,
) -> Task<anyhow::Result<<R as LspCommand>::Response>> {
let message = request.to_proto(upstream_project_id, buffer.read(cx));
cx.spawn(async move |this, cx| {
@ -4297,7 +4297,7 @@ impl LspStore {
cx.notify();
}
fn refresh_server_tree(&mut self, cx: &mut Context<'_, Self>) {
fn refresh_server_tree(&mut self, cx: &mut Context<Self>) {
let buffer_store = self.buffer_store.clone();
if let Some(local) = self.as_local_mut() {
let mut adapters = BTreeMap::default();
@ -6643,7 +6643,7 @@ impl LspStore {
buffer: &Entity<Buffer>,
position: Option<P>,
request: R,
cx: &mut Context<'_, Self>,
cx: &mut Context<Self>,
) -> Task<Vec<R::Response>>
where
P: ToOffset,