FerryDocs
ContributingTesting

Lints and formatting

Two commands check the layout of the Rust code and look for common errors. The two must pass.

Edit on GitHub

cargo fmt. It compares the layout of the code with the standard layout. It changes no file.

1 / 3

Run the two commands

Terminal
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
Part of the commandEffect
--checkThe only reports a difference.
-D warningsEach warning of a stops the command with an error.

The two commands must pass. See the coding rules.

On this page