diff --git a/rust-no-heap/src/lib.rs b/rust-no-heap/src/lib.rs index 59a2b96..20202a5 100644 --- a/rust-no-heap/src/lib.rs +++ b/rust-no-heap/src/lib.rs @@ -90,6 +90,7 @@ #![no_std] +#![forbid(unsafe_code)] use core::convert::TryFrom; diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 60f1d29..5f26b25 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -85,6 +85,7 @@ //! ``` +#![forbid(unsafe_code)] use std::convert::TryFrom;