Open
Description
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:
if lower.contains("expiry date:")
|| lower.contains("expires:") /* .am, .br, .dk, .edu, .is, .lt, .se, .ua */
|| lower.contains("expire:")
/* .ar, .cz */
{
// ...
}
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 &&
)