Code cleanup

This commit is contained in:
Drakulix 2017-03-14 18:50:48 +01:00
parent 7ac16ce200
commit 728bab5690
1 changed files with 1 additions and 2 deletions

View File

@ -217,10 +217,9 @@ impl InputBackend for GlutinInputBackend
} }
fn clear_handler(&mut self) { fn clear_handler(&mut self) {
if let Some(ref mut handler) = self.handler { if let Some(mut handler) = self.handler.take() {
handler.on_seat_destroyed(&self.seat); handler.on_seat_destroyed(&self.seat);
} }
self.handler = None;
} }
fn set_cursor_position(&mut self, x: u32, y: u32) -> Result<(), ()> { fn set_cursor_position(&mut self, x: u32, y: u32) -> Result<(), ()> {