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
But the impl header is 101 characters long. If it is made any longer, rustfmt will correctly wrap it to the next line, but at this exact length, rustfmt uses single-line formatting when it shouldn't.
This may be related to #5321, which involves trait bounds but not where.
The text was updated successfully, but these errors were encountered:
Additionally, where_single_line is set to false by default so I wouldn't expect rustfmt to try and place the entire where clause on a single line at all. Some of that inconsistency might be explained by #2741
I didn't particularly investigate the case where it does wrap. I don't particularly care where the line breaks land, just that the result obeys the max width.
With default settings, rustfmt thinks the following code is formatted:
But the
impl
header is 101 characters long. If it is made any longer, rustfmt will correctly wrap it to the next line, but at this exact length, rustfmt uses single-line formatting when it shouldn't.This may be related to #5321, which involves trait bounds but not
where
.The text was updated successfully, but these errors were encountered: