From f4028baf655e2994459e55d62435de4456fee80f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 22 Jul 2019 12:57:30 +0800 Subject: [PATCH] Forbid unsafe everywhere Looks much better in cargo-geiger, and is the right thing to do I believe. Most crates should be able to work without any unsafe. --- src/lib.rs | 2 ++ src/main.rs | 1 + tui-react/src/lib.rs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ecb66b43..9c1c3f2b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] + extern crate failure; extern crate jwalk; diff --git a/src/main.rs b/src/main.rs index e5453c75..1e791755 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_code)] #![allow(clippy::match_bool)] extern crate failure; extern crate failure_tools; diff --git a/tui-react/src/lib.rs b/tui-react/src/lib.rs index e44e39fe..b7d5b943 100644 --- a/tui-react/src/lib.rs +++ b/tui-react/src/lib.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] + mod list; mod terminal;