Open nc7s opened 3 months ago
This code:
if lower.contains("expiry date:") || lower.contains("expires:") /* .am, .br, .dk, .edu, .is, .lt, .se, .ua */ || lower.contains("expire:") /* .ar, .cz */ { // ... }
is formatted to:
Supposedly rustfmt is assuming the comment between if and { is comment for the entire if clause. Ideally it should take || into account and take the comment before { as comment for the last || branch. (Probably also &&)
if
{
||
&&
This code:
is formatted to:
Supposedly rustfmt is assuming the comment between
if
and{
is comment for the entireif
clause. Ideally it should take||
into account and take the comment before{
as comment for the last||
branch. (Probably also&&
)