diff --git a/src/platform/android.rs b/src/platform/android.rs index eaee1ed9..1f7383e9 100644 --- a/src/platform/android.rs +++ b/src/platform/android.rs @@ -109,7 +109,7 @@ impl WindowExtAndroid for Window { } } -impl ActiveEventLoopExtAndroid for &dyn ActiveEventLoop { +impl ActiveEventLoopExtAndroid for dyn ActiveEventLoop + '_ { fn android_app(&self) -> &AndroidApp { let event_loop = self.as_any().downcast_ref::().unwrap(); diff --git a/src/platform/macos.rs b/src/platform/macos.rs index cce9dedd..a09d7e18 100644 --- a/src/platform/macos.rs +++ b/src/platform/macos.rs @@ -396,7 +396,7 @@ pub trait ActiveEventLoopExtMacOS { fn allows_automatic_window_tabbing(&self) -> bool; } -impl ActiveEventLoopExtMacOS for &dyn ActiveEventLoop { +impl ActiveEventLoopExtMacOS for dyn ActiveEventLoop + '_ { fn hide_application(&self) { let event_loop = self .as_any() diff --git a/src/platform/startup_notify.rs b/src/platform/startup_notify.rs index 3927384c..7698eba5 100644 --- a/src/platform/startup_notify.rs +++ b/src/platform/startup_notify.rs @@ -57,7 +57,7 @@ pub trait WindowAttributesExtStartupNotify { fn with_activation_token(self, token: ActivationToken) -> Self; } -impl EventLoopExtStartupNotify for &dyn ActiveEventLoop { +impl EventLoopExtStartupNotify for dyn ActiveEventLoop + '_ { fn read_token_from_env(&self) -> Option { #[cfg(x11_platform)] let _is_wayland = false; diff --git a/src/platform/wayland.rs b/src/platform/wayland.rs index 7b489abe..95a9980c 100644 --- a/src/platform/wayland.rs +++ b/src/platform/wayland.rs @@ -24,7 +24,7 @@ pub trait ActiveEventLoopExtWayland { fn is_wayland(&self) -> bool; } -impl ActiveEventLoopExtWayland for &dyn ActiveEventLoop { +impl ActiveEventLoopExtWayland for dyn ActiveEventLoop + '_ { #[inline] fn is_wayland(&self) -> bool { self.as_any().downcast_ref::().is_some() diff --git a/src/platform/web.rs b/src/platform/web.rs index bbcb75d1..fb4d2dbd 100644 --- a/src/platform/web.rs +++ b/src/platform/web.rs @@ -347,7 +347,7 @@ pub trait ActiveEventLoopExtWeb { fn has_detailed_monitor_permission(&self) -> bool; } -impl ActiveEventLoopExtWeb for &dyn ActiveEventLoop { +impl ActiveEventLoopExtWeb for dyn ActiveEventLoop + '_ { #[inline] fn create_custom_cursor_async(&self, source: CustomCursorSource) -> CustomCursorFuture { let event_loop = self diff --git a/src/platform/x11.rs b/src/platform/x11.rs index 612d22c9..72d052f0 100644 --- a/src/platform/x11.rs +++ b/src/platform/x11.rs @@ -91,7 +91,7 @@ pub trait ActiveEventLoopExtX11 { fn is_x11(&self) -> bool; } -impl ActiveEventLoopExtX11 for &dyn ActiveEventLoop { +impl ActiveEventLoopExtX11 for dyn ActiveEventLoop + '_ { #[inline] fn is_x11(&self) -> bool { self.as_any().downcast_ref::().is_some()