Remove extra whitespace after macro calls

This commit is contained in:
Edward Yang 2016-10-27 02:40:08 -05:00
parent 4b1c669037
commit 5ecdd072d6
3 changed files with 13 additions and 0 deletions

View File

@ -178,6 +178,13 @@ impl<'a> FmtVisitor<'a> {
if last_wspace.is_none() {
last_wspace = Some(i);
}
} else if c == ';' {
if last_wspace.is_some() {
line_start = i;
}
rewrite_next_comment = rewrite_next_comment || kind == CodeCharKind::Normal;
last_wspace = None;
} else {
rewrite_next_comment = rewrite_next_comment || kind == CodeCharKind::Normal;
last_wspace = None;

View File

@ -0,0 +1,3 @@
fn main() {
assert!(true) ;
}

View File

@ -0,0 +1,3 @@
fn main() {
assert!(true);
}