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 outputs: src/lib.rs:3: line exceeded maximum length (sorry), when the line is clearly shorter than the threshold.
I think the problem lies in that rustfmt uses len_utf8() to calculate line length. It should probably use unicode grapheme clusters, but the underlying string buffer type doesn't support this.
The text was updated successfully, but these errors were encountered:
On formatting the following code with
rustfmt
:It formats it as:
but outputs:
src/lib.rs:3: line exceeded maximum length (sorry)
, when the line is clearly shorter than the threshold.I think the problem lies in that
rustfmt
useslen_utf8()
to calculate line length. It should probably use unicode grapheme clusters, but the underlying string buffer type doesn't support this.The text was updated successfully, but these errors were encountered: