Activate some warnings

This commit is contained in:
Joscha 2022-12-11 20:34:21 +01:00
parent b763fb62de
commit d95ef928af
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,14 @@
#![forbid(unsafe_code)]
// Rustc lint groups
#![warn(future_incompatible)]
#![warn(rust_2018_idioms)]
#![warn(unused)]
// Rustc lints
#![warn(noop_method_call)]
#![warn(single_use_lifetimes)]
// Clippy lints
#![warn(clippy::use_self)]
#[cfg(feature = "tokio")]
pub mod tokio;