microsoft / windows-rs

Rust for Windows
https://kennykerr.ca/rust-getting-started/
Apache License 2.0
10.13k stars 473 forks source link

Use default rustfmt config for most crates #3064

Closed sivadeilra closed 1 month ago

sivadeilra commented 1 month ago

This uses the default rustfmt configuration for windows-core, windows-implement, and windows-interface.

Editing files that use the non-default rustfmt config (with extremely wide columns) is significantly more difficult than editing files that use the default config.

kennykerr commented 1 month ago

It's not immediately obvious that this PR added a rustfmt-config config option to windows-bindgen - not sure I like the supportability of that. May rethink this at some point, but it does simplify formatting and readability so that's good.