mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 13:45:12 +02:00
other: add clippy lints to deny todo and unimplemented (#1085)
This commit is contained in:
parent
e4f9033ed8
commit
36f55de4d2
@ -1,6 +1,8 @@
|
|||||||
#![warn(rust_2018_idioms)]
|
#![warn(rust_2018_idioms)]
|
||||||
|
#![deny(clippy::todo)]
|
||||||
|
#![deny(clippy::unimplemented)]
|
||||||
#![deny(clippy::missing_safety_doc)]
|
#![deny(clippy::missing_safety_doc)]
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)] // TODO: Deny unused imports.
|
||||||
#[cfg(feature = "log")]
|
#[cfg(feature = "log")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
@ -6,9 +6,10 @@
|
|||||||
//! bottom, refer to [here](https://clementtsang.github.io/bottom/stable/).
|
//! bottom, refer to [here](https://clementtsang.github.io/bottom/stable/).
|
||||||
|
|
||||||
#![warn(rust_2018_idioms)]
|
#![warn(rust_2018_idioms)]
|
||||||
|
#![deny(clippy::todo)]
|
||||||
|
#![deny(clippy::unimplemented)]
|
||||||
#![deny(clippy::missing_safety_doc)]
|
#![deny(clippy::missing_safety_doc)]
|
||||||
// TODO: Deny unused imports.
|
#[allow(unused_imports)] // TODO: Deny unused imports.
|
||||||
#[allow(unused_imports)]
|
|
||||||
// Only used for builds not intended for release.
|
// Only used for builds not intended for release.
|
||||||
#[cfg(feature = "log")]
|
#[cfg(feature = "log")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user