cargo-fix
Automatically fix lint warnings reported by rustc. tldr-pages
On several platforms
Several platforms
Fix code even if it already has compiler errors
cargo fix --broken-codeIdentifyFix code even if the working directory has changes
cargo fix --allow-dirtyIdentifyMigrate a package to the next Rust edition
cargo fix --editionIdentifyFix the package's library
cargo fix --libIdentifyFix the specified integration test
cargo fix --test nameIdentifyFix all members in the workspace
cargo fix --workspaceIdentify