pass clippy
This commit is contained in:
1 parent
cd17f515d4
commit
70590c6af0
1 file changed
+5
-3
@@ -342,10 +342,12 @@ impl WindowEventHandlers {
|
|||||||
|
|
||||||
struct WryWindowEventHandlerInner {
|
struct WryWindowEventHandlerInner {
|
||||||
window_id: WindowId,
|
window_id: WindowId,
|
||||||
handler:
|
handler: WryEventHandlerCallback,
|
||||||
Box<dyn FnMut(&Event<UserWindowEvent>, &EventLoopWindowTarget<UserWindowEvent>) + 'static>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type WryEventHandlerCallback =
|
||||||
|
Box<dyn FnMut(&Event<UserWindowEvent>, &EventLoopWindowTarget<UserWindowEvent>) + 'static>;
|
||||||
|
|
||||||
impl WryWindowEventHandlerInner {
|
impl WryWindowEventHandlerInner {
|
||||||
fn apply_event(
|
fn apply_event(
|
||||||
&mut self,
|
&mut self,
|
||||||
@@ -381,7 +383,7 @@ pub fn use_wry_event_handler(
|
|||||||
let id = desktop.create_wry_event_handler(handler);
|
let id = desktop.create_wry_event_handler(handler);
|
||||||
|
|
||||||
WryEventHandler {
|
WryEventHandler {
|
||||||
handlers: desktop.event_handlers.clone(),
|
handlers: desktop.event_handlers,
|
||||||
id,
|
id,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user