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:
parent
e90411efa2
commit
b5dc09c0ca
32 changed files with 80 additions and 87 deletions
|
@ -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, _| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue