Merge pull request #2078 from rtfeldman/joshuawarner32/fix-newline-indent

Fix indent formatting in Def::AnnotatedBody
This commit is contained in:
Richard Feldman 2021-11-26 15:38:54 -05:00 committed by GitHub
commit 837e0929bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ impl<'a> Formattable<'a> for Def<'a> {
buf.push_str(" # ");
buf.push_str(comment_str.trim());
}
buf.push_str("\n");
newline(buf, indent);
fmt_body(buf, &body_pattern.value, &body_expr.value, indent);
}