carl-anders / slimevr-wrangler

Use Joycons as SlimeVR trackers with this middleware application
Apache License 2.0
122 stars 15 forks source link

Add rustfmt.toml to describe format #23

Closed TheButlah closed 1 year ago

TheButlah commented 1 year ago

I wanted to modify it from the defaults to be:

max_width = 88  # follow python black and improve readability for side-by-side editing
hard_tabs = true # allow users to reconfigure indent width

but I didn't want to be that guy 😅 so I left it as what you already had.

carl-anders commented 1 year ago

I don't see the point of having an empty file and rather keep the default settings. Thanks anyways :)

TheButlah commented 1 year ago

Even just an empty file is helpful because it enforces the format and signals what you want, otherwise people's autoformatters will use their default format

https://www.reddit.com/r/rust/comments/9jl6a9/pro_tip_if_you_use_cargo_fmtrustfmt_use_a/