Fix some clippy lints
This commit is contained in:
parent
e76affbc66
commit
32f48b3cd2
|
@ -13,10 +13,12 @@ pub type NativeDisplayType = *const c_void;
|
|||
pub type NativePixmapType = *const c_void;
|
||||
pub type NativeWindowType = *const c_void;
|
||||
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(clippy))]
|
||||
pub mod gl {
|
||||
include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs"));
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(clippy))]
|
||||
pub mod egl {
|
||||
use super::*;
|
||||
use libloading::Library;
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
//! Common traits and types for egl rendering
|
||||
|
||||
/// Large parts of this module are taken from
|
||||
/// https://github.com/tomaka/glutin/tree/044e651edf67a2029eecc650dd42546af1501414/src/api/egl/
|
||||
///
|
||||
/// It therefore falls under glutin's Apache 2.0 license
|
||||
/// (see https://github.com/tomaka/glutin/tree/044e651edf67a2029eecc650dd42546af1501414/LICENSE)
|
||||
// Large parts of this module are taken from
|
||||
// https://github.com/tomaka/glutin/tree/044e651edf67a2029eecc650dd42546af1501414/src/api/egl/
|
||||
//
|
||||
// It therefore falls under glutin's Apache 2.0 license
|
||||
// (see https://github.com/tomaka/glutin/tree/044e651edf67a2029eecc650dd42546af1501414/LICENSE)
|
||||
|
||||
use super::GraphicsBackend;
|
||||
use nix::libc::c_void;
|
||||
use std::fmt;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//! Wayland specific EGL functionality - EGL based WlBuffers.
|
||||
//! Wayland specific EGL functionality - EGL based `WlBuffer`s.
|
||||
//!
|
||||
//! The types of this module can be used to initialize hardware acceleration rendering
|
||||
//! based on EGL for clients as it may enabled usage of `EGLImage` based `WlBuffer`s.
|
||||
|
@ -81,7 +81,7 @@ impl From<EglExtensionNotSupportedError> for BufferAccessError {
|
|||
}
|
||||
}
|
||||
|
||||
/// Error that might happen when binding an EGLImage to a gl texture
|
||||
/// Error that might happen when binding an `EGLImage` to a gl texture
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum TextureCreationError {
|
||||
/// The given plane index is out of bounds
|
||||
|
|
|
@ -123,7 +123,7 @@ impl<H: DrmHandler<SessionFdDrmDevice> + 'static, S: Session + 'static, T: UdevH
|
|||
},
|
||||
Err(err) => {
|
||||
warn!(logger, "Failed to initialize device {:?}. Error: {:?}. Skipping", path, err);
|
||||
return None;
|
||||
None
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue