diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-07-22 12:57:30 +0800 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-07-22 12:57:30 +0800 |
commit | f4028baf655e2994459e55d62435de4456fee80f (patch) | |
tree | 27d7060027c2abdd18d56ae2719fa46fdf73ed05 | |
parent | 387cc1f86e5aec8a20a25ea71f74e948b110d2c6 (diff) |
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.
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/main.rs | 1 | ||||
-rw-r--r-- | tui-react/src/lib.rs | 2 |
3 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] + extern crate failure; extern crate jwalk; diff --git a/src/main.rs b/src/main.rs index e5453c7..1e79175 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 e44e39f..b7d5b94 100644 --- a/tui-react/src/lib.rs +++ b/tui-react/src/lib.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] + mod list; mod terminal; |