Forbid all unsafe code.

This commit is contained in:
aspen 2020-08-20 18:38:40 -04:00
parent 8454136126
commit 96b7fd454b
No known key found for this signature in database
GPG key ID: 732932968965DE56
3 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,8 @@
//! directly. See [clap documentation](https://docs.rs/clap)
//! for the usage of `#[derive(Clap)]`.
#![forbid(unsafe_code)]
extern crate proc_macro;
use proc_macro::TokenStream;

View file

@ -15,6 +15,7 @@
unused_allocation,
trivial_numeric_casts
)]
#![forbid(unsafe_code)]
#![allow(clippy::needless_doctest_main)]
const INTERNAL_ERROR_MSG: &str = "Fatal internal error. Please consider filing a bug \

View file

@ -17,6 +17,7 @@
unused_allocation,
trivial_numeric_casts
)]
#![forbid(unsafe_code)]
#[cfg(not(feature = "std"))]
compile_error!("`std` feature is currently required to build `clap`");