Open Sindisil opened 4 months ago
Thanks for the report.
Per the section of the style guide on array accesses, indexing, and slicing, I would have expected that if let expression to instead be formatted as below:
When you get a chance, would you mind linking to the section of the style guide that you're referring to.
Sure: Array accesses, indexing, and slicing
Sorry 'bout that -- I should have included a link in my report.
Formatting of slice indexing on an element in a long chain sometimes separates the index from the indexed element. See lines 299 & 300 below, where 'text' is a String member of the specified buffer line:
Per the section of the style guide on array accesses, indexing, and slicing, I would have expected that if let expression to instead be formatted as below:
I first saw this running with max_width = 80, but this example was obtained running w/o any config file (i.e., the stock 100).
Version in use:
$ cargo --version cargo 1.80.0-beta.4 (34a6a87d8 2024-06-04) $ rustfmt --version rustfmt 1.7.0-beta (64a1fe6 2024-06-21)