29
you are viewing a single comment's thread
view the rest of the comments
[-] syklemil@discuss.tchncs.de 13 points 4 days ago

Turn on all clippy lints on day one – even the pedantic ones. Run the linter and follow the suggestions religiously. Don’t skip that step once your program compiles.

There's a bunch of clippy groups to enable, but IME the pedantic ones can be kinda … not what you want. Especially the one about unnecessary moves annoy me, as it suggests what I consider an unnecessary long lifetime for a value instead.

[-] d_k_bo@feddit.org 3 points 4 days ago

TIL about clippy::cargo. Thanks!

this post was submitted on 14 May 2025
29 points (100.0% liked)

Rust

6921 readers
35 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS