Loading tutorials
cargo fmt on a project, as covered in the previous chapter, and that you can read a small TOML file. Here you will learn where rustfmt looks for configuration, which options are worth changing, and the errors people usually hit when they do.6 min readcargo clippy on a project and read a basic warning. It builds on that to explain how Clippy sorts its lints into groups, which groups are on by default, and how to choose which others to enable. Setting levels with attributes and the [lints] table gets its own ch7 min readcargo clippy --fix can apply that change for you. This chapter explains how that works, which fixes are safe to apply, and how to review the result.7 min readcargo clippy, read its diagnostics, and set lint levels with attributes or flags. It covers the second layer of Clippy control: configuration values that change how a lint behaves, as opposed to whether it runs.7 min read[lints] table in Cargo.toml, which does that.6 min readcargo fmt and cargo clippy locally, and that you know how lint levels (allow, warn, deny) work. It also assumes you have used Cargo to build a project and have seen a basic CI configuration file. The goal is a pipeline that rejects unformatted code and Clip7 min readcargo fmt and cargo clippy by hand works, but you only see the results after you stop typing. Editor integration moves both tools into the editing loop. Formatting happens when you save, and Clippy warnings appear as underlines in the code.7 min read