Keep unsafe code forbidden when puffin is disabled (#3603)
This helps document what unsafe is being used for, and prevent other uses from going unnoticed.
This commit is contained in:
parent
63e48dc855
commit
4ece25bd05
|
|
@ -336,7 +336,8 @@
|
|||
|
||||
#![allow(clippy::float_cmp)]
|
||||
#![allow(clippy::manual_range_contains)]
|
||||
#![deny(unsafe_code)]
|
||||
#![cfg_attr(feature = "puffin", deny(unsafe_code))]
|
||||
#![cfg_attr(not(feature = "puffin"), forbid(unsafe_code))]
|
||||
|
||||
mod animation_manager;
|
||||
pub mod containers;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@
|
|||
|
||||
#![allow(clippy::float_cmp)]
|
||||
#![allow(clippy::manual_range_contains)]
|
||||
#![deny(unsafe_code)]
|
||||
#![cfg_attr(feature = "puffin", deny(unsafe_code))]
|
||||
#![cfg_attr(not(feature = "puffin"), forbid(unsafe_code))]
|
||||
|
||||
mod color_test;
|
||||
mod demo;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
|
||||
#![allow(clippy::float_cmp)]
|
||||
#![allow(clippy::manual_range_contains)]
|
||||
#![deny(unsafe_code)]
|
||||
#![cfg_attr(feature = "puffin", deny(unsafe_code))]
|
||||
#![cfg_attr(not(feature = "puffin"), forbid(unsafe_code))]
|
||||
|
||||
#[cfg(feature = "chrono")]
|
||||
mod datepicker;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@
|
|||
//!
|
||||
|
||||
#![allow(clippy::float_cmp)]
|
||||
#![deny(unsafe_code)]
|
||||
#![cfg_attr(feature = "puffin", deny(unsafe_code))]
|
||||
#![cfg_attr(not(feature = "puffin"), forbid(unsafe_code))]
|
||||
|
||||
use std::ops::{Add, Div, Mul, RangeInclusive, Sub};
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
|
||||
#![allow(clippy::float_cmp)]
|
||||
#![allow(clippy::manual_range_contains)]
|
||||
#![deny(unsafe_code)]
|
||||
#![cfg_attr(feature = "puffin", deny(unsafe_code))]
|
||||
#![cfg_attr(not(feature = "puffin"), forbid(unsafe_code))]
|
||||
|
||||
mod bezier;
|
||||
pub mod image;
|
||||
|
|
|
|||
Loading…
Reference in New Issue