2 ms·
rustfmt's defaults would agree with you. The kind of alignment it did in OP's example is an option you need to turn on.
by Macha 6y ago
rustfmt's defaults would agree with you. The kind of alignment it did in OP's example is an option you need to turn on.
- quietbritishjim 6y agoIn fairness I just tried their example in the Rust Playground [1] online and it gave exactly the formatting they showed [2] [1] https://play.rust-lang.org/ https://play.rust-lang.org/ [2] https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b13b2aeadf3ca9100538fb9d3cc35ccc https://play.rust-lang.org/?version=stable&mode=debug&editio... Edit: I just realised the example I showed is different in that it doesn't try to line up all the field values (for fields that do fit on one line) so it must actually have some other option set, like you said.