other: add clippy lints to deny todo and unimplemented (#1085)

This commit is contained in:
Clement Tsang 2023-04-05 00:41:59 -04:00 committed by GitHub
parent e4f9033ed8
commit 36f55de4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#![warn(rust_2018_idioms)]
#![deny(clippy::todo)]
#![deny(clippy::unimplemented)]
#![deny(clippy::missing_safety_doc)]
#[allow(unused_imports)]
#[allow(unused_imports)] // TODO: Deny unused imports.
#[cfg(feature = "log")]
#[macro_use]
extern crate log;

View File

@ -6,9 +6,10 @@
//! bottom, refer to [here](https://clementtsang.github.io/bottom/stable/).
#![warn(rust_2018_idioms)]
#![deny(clippy::todo)]
#![deny(clippy::unimplemented)]
#![deny(clippy::missing_safety_doc)]
// TODO: Deny unused imports.
#[allow(unused_imports)]
#[allow(unused_imports)] // TODO: Deny unused imports.
// Only used for builds not intended for release.
#[cfg(feature = "log")]
#[macro_use]