Don't indent next expr after multiline binop

This commit is contained in:
Richard Feldman 2022-07-13 22:05:04 -04:00
parent 2013e308f7
commit 9e19baef59
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -549,13 +549,7 @@ fn fmt_binops<'a, 'buf>(
buf.spaces(1);
}
let next_indent = if is_multiline {
indent + INDENT
} else {
indent
};
loc_right_side.format_with_options(buf, apply_needs_parens, Newlines::Yes, next_indent);
loc_right_side.format_with_options(buf, apply_needs_parens, Newlines::Yes, indent);
}
fn format_spaces<'a, 'buf>(