Skip to content

Commit 68a34cf

Browse files
davidBar-Onrsammelson
authored andcommitted
Fix issue with extra semicolon when import comment preceeds semicolon
1 parent 917806a commit 68a34cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lists.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ pub(crate) fn extract_post_comment(
637637
post_snippet.trim_matches(white_space)
638638
}
639639
// not comment or over two lines
640-
else if post_snippet.ends_with(',')
640+
else if post_snippet.ends_with(separator)
641641
&& (!post_snippet.trim().starts_with("//") || post_snippet.trim().contains('\n'))
642642
{
643643
post_snippet[..(post_snippet.len() - 1)].trim_matches(white_space)

0 commit comments

Comments
 (0)