We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db1738 commit dbf385aCopy full SHA for dbf385a
rustfmt-core/rustfmt-lib/src/expr.rs
@@ -833,11 +833,8 @@ impl<'a> ControlFlow<'a> {
833
.span_after(self.span, self.connector.trim());
834
let comments_span = mk_sp(comments_lo, expr.span.lo());
835
836
- let missing_comments = match rewrite_missing_comment(
837
- comments_span,
838
- cond_shape,
839
- context,
840
- ) {
+ let missing_comments = match rewrite_missing_comment(comments_span, cond_shape, context)
+ {
841
None => "".to_owned(),
842
Some(comment) if self.connector.is_empty() || comment.is_empty() => comment,
843
// Handle same-line block comments:
0 commit comments