Turn on all warning for Clippy by adding the following to the top of your lib.rs:
lib.rs
#![deny(clippy::all)] #![warn(clippy::pedantic)] #![warn(clippy::nursery)] #![warn(clippy::cargo)]
From "Pedantic Clippy" by Yury Zhauniarovich.