1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

clippy fixes

This commit is contained in:
Emil Ernerfeldt
2022-05-16 16:44:58 +02:00
parent 934fcd7e99
commit 810b609a80
3 changed files with 13 additions and 10 deletions

View File

@@ -679,7 +679,7 @@ fn translate_cursor(cursor_icon: egui::CursorIcon) -> Option<winit::window::Curs
}
/// Returns a Wayland display handle if the target is running Wayland
fn get_wayland_display(window: &winit::window::Window) -> Option<*mut c_void> {
fn get_wayland_display(_window: &winit::window::Window) -> Option<*mut c_void> {
#[cfg(any(
target_os = "linux",
target_os = "dragonfly",
@@ -688,7 +688,7 @@ fn get_wayland_display(window: &winit::window::Window) -> Option<*mut c_void> {
target_os = "openbsd"
))]
{
return window.wayland_display();
return _window.wayland_display();
}
#[allow(unreachable_code)]