Skip to content

Commit dbf385a

Browse files
chore: minor format fix
1 parent 0db1738 commit dbf385a

File tree

1 file changed

+2
-5
lines changed
  • rustfmt-core/rustfmt-lib/src

1 file changed

+2
-5
lines changed

rustfmt-core/rustfmt-lib/src/expr.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,8 @@ impl<'a> ControlFlow<'a> {
833833
.span_after(self.span, self.connector.trim());
834834
let comments_span = mk_sp(comments_lo, expr.span.lo());
835835

836-
let missing_comments = match rewrite_missing_comment(
837-
comments_span,
838-
cond_shape,
839-
context,
840-
) {
836+
let missing_comments = match rewrite_missing_comment(comments_span, cond_shape, context)
837+
{
841838
None => "".to_owned(),
842839
Some(comment) if self.connector.is_empty() || comment.is_empty() => comment,
843840
// Handle same-line block comments:

0 commit comments

Comments
 (0)