Fix clippy warnings
This commit is contained in:
parent
3c6877f094
commit
a4d2043b7e
|
@ -5,7 +5,6 @@ use crate::backend::egl::display::EGLDisplay;
|
||||||
use crate::backend::egl::native::NativeSurface;
|
use crate::backend::egl::native::NativeSurface;
|
||||||
use crate::backend::egl::{native, EGLSurface};
|
use crate::backend::egl::{native, EGLSurface};
|
||||||
use crate::backend::graphics::{PixelFormat, SwapBuffersError};
|
use crate::backend::graphics::{PixelFormat, SwapBuffersError};
|
||||||
use slog;
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use std::sync::{Arc, Weak};
|
use std::sync::{Arc, Weak};
|
||||||
|
|
||||||
|
@ -15,7 +14,6 @@ pub struct EGLContext {
|
||||||
display: Weak<ffi::egl::types::EGLDisplay>,
|
display: Weak<ffi::egl::types::EGLDisplay>,
|
||||||
config_id: ffi::egl::types::EGLConfig,
|
config_id: ffi::egl::types::EGLConfig,
|
||||||
pixel_format: PixelFormat,
|
pixel_format: PixelFormat,
|
||||||
logger: slog::Logger,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EGLContext {
|
impl EGLContext {
|
||||||
|
@ -117,7 +115,6 @@ impl EGLContext {
|
||||||
display: Arc::downgrade(&display.display),
|
display: Arc::downgrade(&display.display),
|
||||||
config_id,
|
config_id,
|
||||||
pixel_format,
|
pixel_format,
|
||||||
logger: log,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -444,7 +444,7 @@ impl WaylandEGLDisplay {
|
||||||
fn new(
|
fn new(
|
||||||
display: Weak<ffi::egl::types::EGLDisplay>,
|
display: Weak<ffi::egl::types::EGLDisplay>,
|
||||||
wayland: *mut wl_display,
|
wayland: *mut wl_display,
|
||||||
extensions: &Vec<String>,
|
extensions: &[String],
|
||||||
) -> Self {
|
) -> Self {
|
||||||
#[cfg(feature = "renderer_gl")]
|
#[cfg(feature = "renderer_gl")]
|
||||||
let gl = gl_ffi::Gles2::load_with(|s| get_proc_address(s) as *const _);
|
let gl = gl_ffi::Gles2::load_with(|s| get_proc_address(s) as *const _);
|
||||||
|
|
Loading…
Reference in New Issue