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 19:26:30 +00:00
committed by GitHub
parent e90411efa2
commit b5dc09c0ca
32 changed files with 80 additions and 87 deletions
+2 -2
View File
@@ -530,7 +530,7 @@ impl ActiveThread {
caption: impl Into<SharedString>,
icon: IconName,
window: &mut Window,
cx: &mut Context<'_, ActiveThread>,
cx: &mut Context<ActiveThread>,
) {
if window.is_window_active()
|| !self.notifications.is_empty()
@@ -1791,7 +1791,7 @@ impl ActiveThread {
})
}
fn dismiss_notifications(&mut self, cx: &mut Context<'_, ActiveThread>) {
fn dismiss_notifications(&mut self, cx: &mut Context<ActiveThread>) {
for window in self.notifications.drain(..) {
window
.update(cx, |_, window, _| {
+1 -1
View File
@@ -1242,7 +1242,7 @@ impl Thread {
input: serde_json::Value,
messages: &[LanguageModelRequestMessage],
tool: Arc<dyn Tool>,
cx: &mut Context<'_, Thread>,
cx: &mut Context<Thread>,
) {
let task = self.spawn_tool_use(tool_use_id.clone(), messages, input, tool, cx);
self.tool_use