summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-04-05 00:41:59 -0400
committerGitHub <noreply@github.com>2023-04-05 00:41:59 -0400
commit36f55de4d2030f8792f61a0e6c1d9ddb4ea99a61 (patch)
tree8c3a3e183cef3c484a7a106843fbee0431c312ba
parente4f9033ed8e26d75cd95f4407ef588d12cd8718e (diff)
other: add clippy lints to deny todo and unimplemented (#1085)
-rw-r--r--src/bin/main.rs4
-rw-r--r--src/lib.rs5
2 files changed, 6 insertions, 3 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
index 0b3a9bd5..bbe6d3d2 100644
--- a/src/bin/main.rs
+++ b/src/bin/main.rs
@@ -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;
diff --git a/src/lib.rs b/src/lib.rs
index 9c1d481c..c2e9b60b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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]