Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773)
To be consistent with the use of the safety badge in the README.
This commit is contained in:
parent
c5caed5b35
commit
8ec9233e28
|
|
@ -298,6 +298,7 @@
|
||||||
|
|
||||||
#![allow(clippy::float_cmp)]
|
#![allow(clippy::float_cmp)]
|
||||||
#![allow(clippy::manual_range_contains)]
|
#![allow(clippy::manual_range_contains)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
mod animation_manager;
|
mod animation_manager;
|
||||||
pub mod containers;
|
pub mod containers;
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
#![allow(clippy::float_cmp)]
|
#![allow(clippy::float_cmp)]
|
||||||
#![allow(clippy::manual_range_contains)]
|
#![allow(clippy::manual_range_contains)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
mod color_test;
|
mod color_test;
|
||||||
mod demo;
|
mod demo;
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#![allow(clippy::float_cmp)]
|
#![allow(clippy::float_cmp)]
|
||||||
#![allow(clippy::manual_range_contains)]
|
#![allow(clippy::manual_range_contains)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
#[cfg(feature = "chrono")]
|
#[cfg(feature = "chrono")]
|
||||||
mod datepicker;
|
mod datepicker;
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
#![allow(clippy::float_cmp)]
|
#![allow(clippy::float_cmp)]
|
||||||
#![allow(clippy::manual_range_contains)]
|
#![allow(clippy::manual_range_contains)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
mod painter;
|
mod painter;
|
||||||
pub use painter::Painter;
|
pub use painter::Painter;
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
//!
|
//!
|
||||||
|
|
||||||
#![allow(clippy::float_cmp)]
|
#![allow(clippy::float_cmp)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
use std::ops::{Add, Div, Mul, RangeInclusive, Sub};
|
use std::ops::{Add, Div, Mul, RangeInclusive, Sub};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#![allow(clippy::float_cmp)]
|
#![allow(clippy::float_cmp)]
|
||||||
#![allow(clippy::manual_range_contains)]
|
#![allow(clippy::manual_range_contains)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
mod bezier;
|
mod bezier;
|
||||||
pub mod image;
|
pub mod image;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue