Skip to content

Commit

Permalink
Fix linux build and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Osspial committed Feb 15, 2019
1 parent 7164a69 commit 85cb8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/platform_impl/linux/wayland/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub struct EventLoopWindowTarget<T> {
_marker: ::std::marker::PhantomData<T>
}

impl<T> EventLoopProxy<T: 'static> {
impl<T: 'static> EventLoopProxy<T> {
pub fn send_event(&self, event: T) -> Result<(), EventLoopClosed> {
self.user_sender.send(event).map_err(|_| EventLoopClosed)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/send_objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fn needs_send<T:Send>() {}

#[test]
fn event_loop_proxy_send() {
fn is_send<T: Send>() {
fn is_send<T: 'static + Send>() {
// ensures that `winit::EventLoopProxy` implements `Send`
needs_send::<winit::event_loop::EventLoopProxy<T>>();
}
Expand Down

0 comments on commit 85cb8f0

Please sign in to comment.