Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4028ba

Browse files
author
Sebastian Thiel
committed
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.
1 parent 387cc1f commit f4028ba

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![forbid(unsafe_code)]
2+
13
extern crate failure;
24
extern crate jwalk;
35

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![forbid(unsafe_code)]
12
#![allow(clippy::match_bool)]
23
extern crate failure;
34
extern crate failure_tools;

tui-react/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![forbid(unsafe_code)]
2+
13
mod list;
24
mod terminal;
35

0 commit comments

Comments
 (0)