this post was submitted on 03 Apr 2024
20 points (100.0% liked)

Rust

111 readers
2 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 1 year ago
MODERATORS
 

Do you customize your rustfmt, and in what way?

top 4 comments
sorted by: hot top controversial new old
[–] voklen@programming.dev 4 points 7 months ago (1 children)

In every project I have exactly one line to use tabs:

hard_tabs = true
[–] natecox@programming.dev 3 points 7 months ago

This is the way

[–] BB_C@programming.dev 3 points 7 months ago

Other than a couple already mentioned, I like match_block_trailing_comma. Besides the symmetry, trailing commas in general are good for potentially reducing diffs in the future.

But really, I'm not that bothered.

[–] driverdone@lemmy.ml 1 points 7 months ago

I tend to set use_small_heuristics to max. Because ut annoys me when the it doesn't use the full line width when it could