diff --git a/examples/minimal-winit-android/src/lib.rs b/examples/minimal-winit-android/src/lib.rs index 6900841f..2471f6ba 100644 --- a/examples/minimal-winit-android/src/lib.rs +++ b/examples/minimal-winit-android/src/lib.rs @@ -1,3 +1,6 @@ +#![deny(clippy::all)] +#![forbid(unsafe_code)] + #[cfg(target_os = "android")] use winit::platform::android::activity::AndroidApp; diff --git a/internals/pixels-mocks/src/lib.rs b/internals/pixels-mocks/src/lib.rs index 169893ac..9e6fd43b 100644 --- a/internals/pixels-mocks/src/lib.rs +++ b/internals/pixels-mocks/src/lib.rs @@ -1,4 +1,5 @@ #![deny(clippy::all)] +#![forbid(unsafe_code)] pub struct Window; diff --git a/run-wasm/src/main.rs b/run-wasm/src/main.rs index ecda3267..d556e8e1 100644 --- a/run-wasm/src/main.rs +++ b/run-wasm/src/main.rs @@ -1,3 +1,6 @@ +#![deny(clippy::all)] +#![forbid(unsafe_code)] + fn main() { let css = r#"body { background-color: #000; diff --git a/src/lib.rs b/src/lib.rs index e45dff28..360970ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,6 +30,7 @@ //! `WGPU_ADAPTER_NAME` takes precedence. #![deny(clippy::all)] +#![forbid(unsafe_code)] pub use crate::builder::{check_texture_size, PixelsBuilder}; pub use crate::renderers::ScalingRenderer;