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;