summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-07-22 12:57:30 +0800
committerSebastian Thiel <sthiel@thoughtworks.com>2019-07-22 12:57:30 +0800
commitf4028baf655e2994459e55d62435de4456fee80f (patch)
tree27d7060027c2abdd18d56ae2719fa46fdf73ed05 /src/main.rs
parent387cc1f86e5aec8a20a25ea71f74e948b110d2c6 (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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
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;