Properly implement event loop extension traits
This was implemented for `&dyn ActiveEventLoop` before, but that's less general than implementing it directly for `dyn ActiveEventLoop`. The `+ '_` is required to tell the compiler that we want to implement this for all `dyn ActiveEventLoop`s, not just `'static` ones (even though they're all going to be `'static`).
This commit is contained in:
parent
70c54ee0ff
commit
038ef5c3ad
6 changed files with 6 additions and 6 deletions
|
|
@ -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<ActivationToken> {
|
||||
#[cfg(x11_platform)]
|
||||
let _is_wayland = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue