Skip to content

Commit 8b2d1e4

Browse files
committed
Fix up merge mess
1 parent dfc3f31 commit 8b2d1e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/visitor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
275275
offset: 0,
276276
}
277277
};
278-
let comment_str = rewrite_comment(&sub_slice, false, comment_shape, config);
278+
let comment_str =
279+
rewrite_comment(sub_slice.trim(), false, comment_shape, config);
279280
if self
280281
.buffer
281282
.chars()

tests/target/issue-3923.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const TEST: &str =
2-
"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
1+
const TEST: &str = "1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
32

43
const TEST2: &str = "2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222";

0 commit comments

Comments
 (0)