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 …

Tips on Darglint

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

Tips and Traps

  1. It is suggested that you avoid using darglint directly, but instead you can use flake8 which will automatically call darglint if it exists.

  2. Improperly escaped \n causes darglint …