mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
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:
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user