Fix comments in str interpolations

This commit is contained in:
Joshua Warner 2024-12-16 17:23:48 -08:00
parent e760db55f5
commit 887a43ff55
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 40 additions and 4 deletions

View file

@ -895,6 +895,7 @@ fn format_str_segment(seg: &StrSegment, buf: &mut Buf) {
Newlines::No, // Interpolations can never have newlines
min_indent,
);
buf.indent(min_indent);
buf.push(')');
}
}