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 am curious why trailing comments on if-else conditions are not allowed with rustfmt.
Fwiw I searched the manual and gh issues to no avail.
As an example, the following code is reformatted.
if days_expired < 0{// Has yet to expire.Status::Valid}elseif grace_days_left > 0{// In grace period.Status::Grace}else{// Expired and outside of grace period.Status::Expired}
if days_expired < 0{// has yet to expireStatus::Valid}elseif grace_days_left > 0{// in grace periodStatus::Grace}else{// Expired and outside of grace periodStatus::Expired}
The text was updated successfully, but these errors were encountered:
Hi!
I am curious why trailing comments on if-else conditions are not allowed with
rustfmt
.Fwiw I searched the manual and gh issues to no avail.
As an example, the following code is reformatted.
The text was updated successfully, but these errors were encountered: