Skip to content

Commit bb60b2e

Browse files
committed
Add semicolons on the last statement of loop bodies
1 parent acf51c8 commit bb60b2e

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ fn itemized_block_quote_start(line: &str, mut line_start: String, remove_indent:
561561
}
562562

563563
for _ in 0..quote_level {
564-
line_start.push_str("> ")
564+
line_start.push_str("> ");
565565
}
566566
line_start
567567
}

src/config/file_lines.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ fn normalize_ranges(ranges: &mut HashMap<FileName, Vec<Range>>) {
188188
break;
189189
}
190190
}
191-
result.push(next)
191+
result.push(next);
192192
}
193193
*ranges = result;
194194
}

src/modules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ impl<'ast, 'psess, 'c> ModResolver<'ast, 'psess> {
569569
Cow::Owned(items),
570570
Cow::Owned(attrs),
571571
),
572-
))
572+
));
573573
}
574574
result
575575
}

src/shape.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ impl Indent {
9191
indent.push('\n');
9292
}
9393
for _ in 0..num_tabs {
94-
indent.push('\t')
94+
indent.push('\t');
9595
}
9696
for _ in 0..num_spaces {
97-
indent.push(' ')
97+
indent.push(' ');
9898
}
9999
Cow::from(indent)
100100
}

src/stmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl<'a> Stmt<'a> {
6262
result.push(Stmt {
6363
inner: iter.next().unwrap(),
6464
is_last: iter.peek().is_none(),
65-
})
65+
});
6666
}
6767
result
6868
}

tests/source/macro_rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ macro_rules! binary {
184184
op,
185185
rhs,
186186
},
187-
}
187+
};
188188
}
189189
};
190190
}

tests/target/macro_rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ macro_rules! binary {
216216
op,
217217
rhs,
218218
},
219-
}
219+
};
220220
}
221221
};
222222
}

0 commit comments

Comments
 (0)