Fix compilation errors

This commit is contained in:
Ryan Goldstein 2019-09-24 19:39:13 -04:00
parent 3e8669ea7f
commit 6732fa731d
5 changed files with 54 additions and 8 deletions

View file

@ -2,8 +2,7 @@ use super::runner;
use crate::event::Event;
use crate::event_loop::EventLoopClosed;
#[derive(Clone)]
pub struct Proxy<T: 'static> {
pub struct Proxy<T: 'static>{
runner: runner::Shared<T>,
}
@ -17,3 +16,11 @@ impl<T: 'static> Proxy<T> {
Ok(())
}
}
impl<T: 'static> Clone for Proxy<T> {
fn clone(&self) -> Self {
Proxy {
runner: self.runner.clone()
}
}
}