mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Fixed build warnings
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#![cfg(target_os = "linux")]
|
||||
#![allow(unused_variables, dead_code)]
|
||||
|
||||
use self::wayland::egl::{EGLSurface, is_egl_available};
|
||||
use self::wayland::core::{Display, Registry, Compositor, Shell, ShellSurface,
|
||||
@@ -258,7 +259,7 @@ impl Window {
|
||||
|
||||
wayland_context.register_surface(shell_surface.get_wsurface().get_id(), events.clone());
|
||||
|
||||
wayland_context.display.flush();
|
||||
wayland_context.display.flush().unwrap();
|
||||
|
||||
Ok(Window {
|
||||
shell_surface: shell_surface,
|
||||
@@ -375,4 +376,4 @@ impl Drop for Window {
|
||||
ctxt.deregister_surface(self.shell_surface.get_wsurface().get_id())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user