This commit is contained in:
David Lemarier
2021-04-30 13:07:39 -04:00
parent 3219226cb6
commit e3e36c3345

View File

@@ -37,7 +37,6 @@ pub struct MenuHandler {
#[allow(non_snake_case)]
impl MenuHandler {
pub fn new(window: HWND, send_event: Box<dyn Fn(Event<'static, ()>)>) -> MenuHandler {
let data = Box::new(MenuHandler { window, send_event });
MenuHandler { window, send_event }
}
fn send_event(&self, event: Event<'static, ()>) {