1
0
Fork 0
This commit is contained in:
Joakim Frostegård 2020-11-29 17:10:12 +01:00
parent 60244c3888
commit c1d04b978e

View file

@ -21,7 +21,9 @@ impl AppRunner {
} }
pub struct WindowHandle<H: WindowHandler>(pub(crate) platform::WindowHandle<H>); pub struct WindowHandle<H: WindowHandler>(
pub(crate) platform::WindowHandle<H>
);
impl <H: WindowHandler>WindowHandle<H> { impl <H: WindowHandler>WindowHandle<H> {
@ -71,15 +73,9 @@ mod assertions {
impl WindowHandler for TestWindowHandler { impl WindowHandler for TestWindowHandler {
type Message = (); type Message = ();
fn on_event(&mut self, _: &mut Window, _: Event) { fn on_event(&mut self, _: &mut Window, _: Event) {}
fn on_message(&mut self, _: &mut Window, _: Self::Message) {}
} fn on_frame(&mut self) {}
fn on_message(&mut self, _: &mut Window, _: Self::Message) {
}
fn on_frame(&mut self) {
}
} }
// Assert that WindowHandle is Send even if WindowHandler isn't // Assert that WindowHandle is Send even if WindowHandler isn't