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
I noticed that rustfmt, in some cases when using tuple indexing back to back such as some_tuple.0.0 (some_tuple.0 being another tuple or tuple struct of course), it would reformat it to some_tuple.0 .0. Is this behavior intended? If so, I would like an explanation on why rustfmt decides to format it this way.
Examples
Prior to running cargo fmt:
matchself.peek().1.0{
...}
matchself.advance().1.0{
...}
ifself.peek().1.0 == expected {
...}
After running cargo fmt:
matchself.peek().1.0{
...}
matchself.advance().1.0{
...}
ifself.peek().1.0 == expected {
...}
The text was updated successfully, but these errors were encountered:
I noticed that
rustfmt
, in some cases when using tuple indexing back to back such assome_tuple.0.0
(some_tuple.0
being another tuple or tuple struct of course), it would reformat it tosome_tuple.0 .0
. Is this behavior intended? If so, I would like an explanation on whyrustfmt
decides to format it this way.Examples
Prior to running
cargo fmt
:After running
cargo fmt
:The text was updated successfully, but these errors were encountered: