stuartcrust.com - stuart crust · stuart crust

Description: a constant work in progress

Example domain paragraphs

under open source rust clippy

In my previous post I ran into a number of issues and confusion around clippy ’s #[clippy::author] annotation and autogenerated code. Instead of continuing with clippy ’s documentation, I’m going to jump over to llogiq ’s blogpost on writing clippy lints and see what I can learn about lint implementation and the necessary datatypes.

Because clippy is a Rust toolchain component, and the clippy version on https://crates.io is no longer maintained, documentation tools like docs.rs are unavailable for browsing clippy ’s types. Fortunately, Rust has a very strong offline documentation story, and generating documentation for a project is as simple as cargo doc --open . This can be a little tricky to get set up when you’re halfway through implementing a feature and looking for information in the documentation though, because the project has t