unwrap
This commit is contained in:
@@ -62,7 +62,7 @@ impl ApplicationHandler<ClientEvent> for App {
|
|||||||
|
|
||||||
impl AppHandle {
|
impl AppHandle {
|
||||||
pub fn send(&self, event: ClientEvent) {
|
pub fn send(&self, event: ClientEvent) {
|
||||||
self.proxy.send_event(event);
|
self.proxy.send_event(event).unwrap();
|
||||||
self.window.request_redraw();
|
self.window.request_redraw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ mod ui;
|
|||||||
|
|
||||||
pub use app::AppHandle;
|
pub use app::AppHandle;
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum ClientEvent {
|
pub enum ClientEvent {
|
||||||
Connect,
|
Connect,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user