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 know that due to #1063one.0.1 is formatted as one.0 .1, so that the 0.1 doesn't get interpreted as a float literal.
but if the next lines are long enough that the 0.1 gets put onto the next line, then that should not be affected by the bug in #1063, and could be formatted like expected.
this gets fixed by adding version = "Two", but as far as i can tell could be fixed with version = "One" as well.
structOne(Two);implOne{fnnew() -> Self{One(Two((),Three))}}structTwo((),Three);structThree;implThree{fntest(&self, _:&str) -> bool{true}}fnmain(){let one = One::new();let _ = one.0.1;// this is due to https://github.com/rust-lang/rustfmt/issues/1063let _ = one
.0.1// this shouldn't be affected by that and just looks very bad.test("really really long string so that it wraps to the next line");}
The text was updated successfully, but these errors were encountered:
Thanks for the report and for double checking that this is resolved when setting version=Two. I've also confirmed that setting version=Two resolves the issue locally so there's nothing left to do. rustfmt's strong stability guarantee means we can't fix this for version=One.
i know that due to #1063
one.0.1
is formatted asone.0 .1
, so that the0.1
doesn't get interpreted as a float literal.but if the next lines are long enough that the
0.1
gets put onto the next line, then that should not be affected by the bug in #1063, and could be formatted like expected.this gets fixed by adding
version = "Two"
, but as far as i can tell could be fixed withversion = "One"
as well.The text was updated successfully, but these errors were encountered: