Remove extra whitespace after macro calls
This commit is contained in:
parent
4b1c669037
commit
5ecdd072d6
3 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
3
tests/source/issue-1192.rs
Normal file
3
tests/source/issue-1192.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
assert!(true) ;
|
||||
}
|
||||
3
tests/target/issue-1192.rs
Normal file
3
tests/target/issue-1192.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
assert!(true);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue