mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 04:26:48 +00:00
Remove extra whitespace after macro calls
This commit is contained in:
parent
4b1c669037
commit
5ecdd072d6
@ -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…
Reference in New Issue
Block a user