Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Rust Clippy

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

unused_variables unused_imports dead_code

General Tips

  1. Clippy does not support filtering by specific lint directly. However, it can be achieved via the old rustc flags hack. For example, you can use the …