From 28a133987cf31f299bb3eb2090741a596993aa10 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 3 Oct 2024 15:03:23 +0300 Subject: [PATCH] chore: display some clippy lints in generated code We can not do anything about the gl_generator at this point, so just continue disabling things clippy don't really like. --- glutin_egl_sys/src/lib.rs | 1 + glutin_gles2_sys/src/lib.rs | 1 + glutin_glx_sys/src/lib.rs | 1 + glutin_wgl_sys/src/lib.rs | 2 ++ 4 files changed, 5 insertions(+) diff --git a/glutin_egl_sys/src/lib.rs b/glutin_egl_sys/src/lib.rs index 4d8cf7f7fa..9b16bcb217 100644 --- a/glutin_egl_sys/src/lib.rs +++ b/glutin_egl_sys/src/lib.rs @@ -11,6 +11,7 @@ #![allow(clippy::missing_safety_doc)] #![allow(clippy::manual_non_exhaustive)] #![allow(clippy::unnecessary_cast)] +#![allow(unknown_lints, clippy::missing_transmute_annotations)] pub mod egl; diff --git a/glutin_gles2_sys/src/lib.rs b/glutin_gles2_sys/src/lib.rs index 42825830a8..227d960b8e 100644 --- a/glutin_gles2_sys/src/lib.rs +++ b/glutin_gles2_sys/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::missing_safety_doc)] #![allow(clippy::manual_non_exhaustive)] #![allow(clippy::unnecessary_cast)] +#![allow(unknown_lints, clippy::missing_transmute_annotations)] pub mod gles { include!(concat!(env!("OUT_DIR"), "/gles2_bindings.rs")); diff --git a/glutin_glx_sys/src/lib.rs b/glutin_glx_sys/src/lib.rs index 5bec303be2..48c4b25599 100644 --- a/glutin_glx_sys/src/lib.rs +++ b/glutin_glx_sys/src/lib.rs @@ -10,6 +10,7 @@ #![allow(clippy::unused_unit)] #![allow(clippy::redundant_static_lifetimes)] #![allow(clippy::unnecessary_cast)] +#![allow(unknown_lints, clippy::missing_transmute_annotations)] pub use self::glx::types::GLXContext; pub use x11_dl::xlib::*; diff --git a/glutin_wgl_sys/src/lib.rs b/glutin_wgl_sys/src/lib.rs index c9d8048b77..aae6f52b6a 100644 --- a/glutin_wgl_sys/src/lib.rs +++ b/glutin_wgl_sys/src/lib.rs @@ -3,6 +3,8 @@ #![allow(clippy::missing_safety_doc)] #![allow(clippy::manual_non_exhaustive)] #![allow(clippy::unnecessary_cast)] +#![allow(unused_imports)] +#![allow(unknown_lints, clippy::missing_transmute_annotations)] /// WGL bindings pub mod wgl {