diff --git a/src/backend/graphics/egl/ffi.rs b/src/backend/graphics/egl/ffi.rs index 785a612..304506e 100644 --- a/src/backend/graphics/egl/ffi.rs +++ b/src/backend/graphics/egl/ffi.rs @@ -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; diff --git a/src/backend/graphics/egl/mod.rs b/src/backend/graphics/egl/mod.rs index 0252c3c..a4256f5 100644 --- a/src/backend/graphics/egl/mod.rs +++ b/src/backend/graphics/egl/mod.rs @@ -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; diff --git a/src/backend/graphics/egl/wayland.rs b/src/backend/graphics/egl/wayland.rs index 22a4a29..5ae241f 100644 --- a/src/backend/graphics/egl/wayland.rs +++ b/src/backend/graphics/egl/wayland.rs @@ -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 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 diff --git a/src/backend/udev.rs b/src/backend/udev.rs index 4469224..a429085 100644 --- a/src/backend/udev.rs +++ b/src/backend/udev.rs @@ -123,7 +123,7 @@ impl + 'static, S: Session + 'static, T: UdevH }, Err(err) => { warn!(logger, "Failed to initialize device {:?}. Error: {:?}. Skipping", path, err); - return None; + None } } })