You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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)
The text was updated successfully, but these errors were encountered: