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
|
@ -49,7 +49,7 @@ struct GlobalMigrationNotification(Entity<MigrationNotification>);
|
|||
impl Global for GlobalMigrationNotification {}
|
||||
|
||||
impl MigrationBanner {
|
||||
pub fn new(_: &Workspace, cx: &mut Context<'_, Self>) -> Self {
|
||||
pub fn new(_: &Workspace, cx: &mut Context<Self>) -> Self {
|
||||
if let Some(notifier) = MigrationNotification::try_global(cx) {
|
||||
cx.subscribe(
|
||||
¬ifier,
|
||||
|
@ -80,7 +80,7 @@ impl MigrationBanner {
|
|||
}
|
||||
}
|
||||
|
||||
fn handle_notification(&mut self, event: &MigrationEvent, cx: &mut Context<'_, Self>) {
|
||||
fn handle_notification(&mut self, event: &MigrationEvent, cx: &mut Context<Self>) {
|
||||
match event {
|
||||
MigrationEvent::ContentChanged {
|
||||
migration_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue