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
Hi, I like comment closing brackets of conditions with condition to easily see what a indent level implies, sorta like this
pubfnmain(){let x = 5;if x == 3{
x = 4;/* a lot of code ... */}// if x == 3// end of block}
If I put another comment right after the end of the basic block/curly bracket, rustfmt will align the two comments equally altough the comments refer to different scopes:
}// if x == 3// end of block
is there a way to disable comment alignment for this case?
edit: rustfmt 0.4.1- ( )
The text was updated successfully, but these errors were encountered:
fnmain(){let some_variable = 1 + 2 + 3 + 4 + 5;// A line-comment for this ← line.// A long multi-line comment// for the next ↓ line.let some_other_variable = 6;}
After/actual:
fnmain(){let some_variable = 1 + 2 + 3 + 4 + 5;// A line-comment for this ← line.// A long multi-line comment// for the next ↓ line.let some_other_variable = 6;}
Hi, I like comment closing brackets of conditions with condition to easily see what a indent level implies, sorta like this
If I put another comment right after the end of the basic block/curly bracket, rustfmt will align the two comments equally altough the comments refer to different scopes:
is there a way to disable comment alignment for this case?
edit: rustfmt 0.4.1- ( )
The text was updated successfully, but these errors were encountered: