Our great sponsors
-
rust-analyzer
Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
In https://github.com/rust-analyzer/rust-analyzer/issues/10818 it is mentioned that RA also calls rustfmt, maybe that why I see mostly well formatted code despite it having still issues with the let/match conversion. That's why I said it not being consistent. If RA could reliably reformat after code transformations, it wouldn't even matter too much if the snippets are hard coded or not.
I'm the co-author of an existing Rust project that uses two-space tabs. I personally prefer two-space tabs, but was thinking that maybe we should switch to four-space tabs, since it's the standard, to make it easier for new contributors, and possibly more familiar for people looking at the code.