diff options
author | 2019-12-14 01:33:31 +0100 | |
---|---|---|
committer | 2019-12-14 01:33:31 +0100 | |
commit | 65ff3744a06ca5bcb2e1682862d49520bf7ccbfe (patch) | |
tree | 0b804e23dbd9a5249cb84fe07bd21cfea480f728 /winit/src | |
parent | c688452d7beb1b17ef8416fc101f8868767fc457 (diff) | |
download | iced-65ff3744a06ca5bcb2e1682862d49520bf7ccbfe.tar.gz iced-65ff3744a06ca5bcb2e1682862d49520bf7ccbfe.tar.bz2 iced-65ff3744a06ca5bcb2e1682862d49520bf7ccbfe.zip |
Remove unnecessary event loop proxy `Mutex`
I am not sure why I had to use it in the first place...
Diffstat (limited to 'winit/src')
-rw-r--r-- | winit/src/application.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 67a035f7..25396b6f 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -469,17 +469,12 @@ impl Subscriptions { futures::channel::mpsc::channel(100); let stream = recipe.stream(event_receiver); - - // TODO: Find out how to avoid using a mutex here - let proxy = - std::sync::Arc::new(std::sync::Mutex::new(proxy.clone())); + let proxy = proxy.clone(); let future = futures::future::select( cancelled, stream.for_each(move |message| { proxy - .lock() - .expect("Acquire event loop proxy lock") .send_event(message) .expect("Send subscription result to event loop"); |