Move deny lint checks to script
Signed-off-by: Harshil Jani <harshiljani2002@gmail.com>
This commit is contained in:
parent
c8e256718b
commit
a1c3082319
|
@ -36,14 +36,7 @@
|
|||
#![cfg_attr(bench, feature(test))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
// Coding conventions
|
||||
#![deny(non_upper_case_globals)]
|
||||
#![deny(non_camel_case_types)]
|
||||
#![deny(non_snake_case)]
|
||||
#![deny(unused_mut)]
|
||||
#![deny(dead_code)]
|
||||
#![deny(unused_imports)]
|
||||
#![deny(missing_docs)]
|
||||
#![deny(unused_must_use)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
// Instead of littering the codebase for non-fuzzing code just globally allow.
|
||||
#![cfg_attr(fuzzing, allow(dead_code, unused_imports))]
|
||||
|
|
|
@ -78,11 +78,7 @@
|
|||
//! ```
|
||||
|
||||
// Coding conventions
|
||||
#![deny(non_upper_case_globals)]
|
||||
#![deny(non_camel_case_types)]
|
||||
#![deny(non_snake_case)]
|
||||
#![deny(unused_mut)]
|
||||
#![deny(missing_docs)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
// Experimental features we need.
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
|
|
@ -11,14 +11,7 @@
|
|||
// Experimental features we need.
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
// Coding conventions
|
||||
#![deny(non_upper_case_globals)]
|
||||
#![deny(non_camel_case_types)]
|
||||
#![deny(non_snake_case)]
|
||||
#![deny(unused_mut)]
|
||||
#![deny(dead_code)]
|
||||
#![deny(unused_imports)]
|
||||
#![deny(missing_docs)]
|
||||
#![deny(unused_must_use)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
extern crate alloc;
|
||||
|
|
Loading…
Reference in New Issue