Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

6 replies

The style guide is to run cargo fmt. The default rustfmt configuration is good enough. Code should also pass cargo clippy without warnings. Some projects define a just check/just check-json recipe that runs cargo clippy --all-features -- -W clippy::pedantic to catch a plethora of additional suggestions from clippy that are disabled by default. Basic warnings about integer conversions can be annotated to allow them.

5

You reached the end

Style Guide | Spyke