stricter clippy rules
This commit is contained in:
parent
a01ea0f26f
commit
30dcdb395a
19
src/lib.rs
19
src/lib.rs
@ -59,11 +59,22 @@ SOFTWARE.
|
|||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#![cfg_attr(not(test), no_std)]
|
#![cfg_attr(not(test), no_std)]
|
||||||
#![deny(rustdoc::all)]
|
#![deny(
|
||||||
#![allow(rustdoc::missing_doc_code_examples)]
|
clippy::all,
|
||||||
#![deny(clippy::all)]
|
clippy::cargo,
|
||||||
#![deny(clippy::missing_const_for_fn)]
|
clippy::nursery,
|
||||||
|
// clippy::restriction,
|
||||||
|
// clippy::pedantic
|
||||||
|
)]
|
||||||
|
// now allow a few rules which are denied by the above statement
|
||||||
|
// --> they are ridiculous and not necessary
|
||||||
|
#![allow(
|
||||||
|
clippy::suboptimal_flops,
|
||||||
|
clippy::redundant_pub_crate,
|
||||||
|
clippy::fallible_impl_from
|
||||||
|
)]
|
||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
|
#![deny(rustdoc::all)]
|
||||||
|
|
||||||
#[cfg_attr(test, macro_use)]
|
#[cfg_attr(test, macro_use)]
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user