Fix clippy warnings

This commit is contained in:
Chandler Newman 2020-04-15 12:27:01 +01:00
parent 3c6877f094
commit a4d2043b7e
2 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,6 @@ use crate::backend::egl::display::EGLDisplay;
use crate::backend::egl::native::NativeSurface;
use crate::backend::egl::{native, EGLSurface};
use crate::backend::graphics::{PixelFormat, SwapBuffersError};
use slog;
use std::ptr;
use std::sync::{Arc, Weak};
@ -15,7 +14,6 @@ pub struct EGLContext {
display: Weak<ffi::egl::types::EGLDisplay>,
config_id: ffi::egl::types::EGLConfig,
pixel_format: PixelFormat,
logger: slog::Logger,
}
impl EGLContext {
@ -117,7 +115,6 @@ impl EGLContext {
display: Arc::downgrade(&display.display),
config_id,
pixel_format,
logger: log,
})
}

View File

@ -444,7 +444,7 @@ impl WaylandEGLDisplay {
fn new(
display: Weak<ffi::egl::types::EGLDisplay>,
wayland: *mut wl_display,
extensions: &Vec<String>,
extensions: &[String],
) -> Self {
#[cfg(feature = "renderer_gl")]
let gl = gl_ffi::Gles2::load_with(|s| get_proc_address(s) as *const _);