1
Fork 0

Use AddAssign impl

This commit is contained in:
est31 2021-11-09 23:45:17 +01:00
parent d32993afe8
commit 9afb241af5
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ pub fn gather_comments(sm: &SourceMap, path: FileName, src: String) -> Vec<Comme
if let Some(mut idx) = token_text.find('\n') {
code_to_the_left = false;
while let Some(next_newline) = &token_text[idx + 1..].find('\n') {
idx = idx + 1 + next_newline;
idx += 1 + next_newline;
comments.push(Comment {
style: CommentStyle::BlankLine,
lines: vec![],