From 7e4bf91a48b7b5437fbf1362551283c8104bc75c Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 23 Mar 2022 15:12:29 +0000 Subject: [PATCH] Forbid all usage of unsafe code --- lib/src/lib.rs | 2 ++ src/main.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 76f2a38c..0cfcab49 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] + #[macro_use] extern crate log; diff --git a/src/main.rs b/src/main.rs index 97e2a0f8..399a2e17 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] + #[macro_use] extern crate log;