From 17e1a8a6d42fbbd66e63ddca204fb267610e8e88 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Fri, 7 Jan 2022 17:40:03 +0000 Subject: [PATCH] Marked Rust code to forbid unsafe. --- rust-no-heap/src/lib.rs | 1 + rust/src/lib.rs | 1 + 2 files changed, 2 insertions(+) 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;