Skip to content

Commit

Permalink
Forbid unsafe code
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte committed Sep 22, 2024
1 parent ee9b4ea commit bb1ea49
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/minimal-winit-android/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![deny(clippy::all)]
#![forbid(unsafe_code)]

#[cfg(target_os = "android")]
use winit::platform::android::activity::AndroidApp;

Expand Down
1 change: 1 addition & 0 deletions internals/pixels-mocks/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![deny(clippy::all)]
#![forbid(unsafe_code)]

pub struct Window;

Expand Down
3 changes: 3 additions & 0 deletions run-wasm/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![deny(clippy::all)]
#![forbid(unsafe_code)]

fn main() {
let css = r#"body {
background-color: #000;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb1ea49

Please sign in to comment.