From 4b42af910bad15e4d6e662311653b69b0c947f67 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Fri, 9 Jun 2017 22:55:48 +1000 Subject: [PATCH] Make x11 backend take &mut self in poll_events method --- src/platform/linux/x11/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/linux/x11/mod.rs b/src/platform/linux/x11/mod.rs index f18b986c..35472957 100644 --- a/src/platform/linux/x11/mod.rs +++ b/src/platform/linux/x11/mod.rs @@ -117,7 +117,7 @@ impl EventsLoop { } } - pub fn poll_events(&self, mut callback: F) + pub fn poll_events(&mut self, mut callback: F) where F: FnMut(Event) { let xlib = &self.display.xlib;