diff options
author | 2020-01-16 07:12:59 +0100 | |
---|---|---|
committer | 2020-01-16 07:12:59 +0100 | |
commit | f73bacb454615566abdbf45065e3fd11a3276d93 (patch) | |
tree | c668f0a580e74cb0c4ee1a5977b7590fb5028402 /winit/src/application.rs | |
parent | 5de404ddd9484c6e1113697d749524ac79d8c763 (diff) | |
download | iced-f73bacb454615566abdbf45065e3fd11a3276d93.tar.gz iced-f73bacb454615566abdbf45065e3fd11a3276d93.tar.bz2 iced-f73bacb454615566abdbf45065e3fd11a3276d93.zip |
Add file events to `iced_native::window::Event`
Diffstat (limited to '')
-rw-r--r-- | winit/src/application.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index a712632e..406443d3 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -192,9 +192,10 @@ pub trait Application: Sized { ); debug.event_processing_started(); - events.iter().for_each(|event| { - subscription_pool.broadcast_event(*event) - }); + events + .iter() + .cloned() + .for_each(|event| subscription_pool.broadcast_event(event)); let mut messages = user_interface.update( &renderer, |