Skip to content

Commit 1ded995

Browse files
rchaser53topecongiro
authored andcommitted
fix 'left behind trailing whitespace' (#3761)
1 parent 783948f commit 1ded995

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/visitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
623623
self.push_str(s);
624624
} else {
625625
let snippet = self.snippet(span);
626-
self.push_str(snippet);
626+
self.push_str(snippet.trim());
627627
}
628628
self.last_pos = source!(self, span).hi();
629629
}

tests/target/issue-3741.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub enum PublishedFileVisibility {
2+
Public = sys::ERemoteStoragePublishedFileVisibility_k_ERemoteStoragePublishedFileVisibilityPublic as i32,
3+
FriendsOnly = sys::ERemoteStoragePublishedFileVisibility_k_ERemoteStoragePublishedFileVisibilityFriendsOnly as i32,
4+
Private = sys::ERemoteStoragePublishedFileVisibility_k_ERemoteStoragePublishedFileVisibilityPrivate as i32,
5+
}

0 commit comments

Comments
 (0)