Merge pull request #1200 from efyang/strayspace
Remove extra whitespace after macro calls
This commit is contained in:
commit
8494d5f89c
@ -183,6 +183,13 @@ fn replace_chars(string: &str) -> String {
|
||||
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