Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
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.
The style guide is to run
cargo fmt
. The default rustfmt configuration is good enough. Code should also passcargo clippy
without warnings. Some projects define ajust check
/just check-json
recipe that runscargo 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.thank you