Skip to content

Commit 6937912

Browse files
committed
Let Clippy Worry about Semicolons
1 parent 5f0234f commit 6937912

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,6 @@ fn apply_suggestion(suggestion: &Suggestion) -> Result<(), ProgramError> {
299299
// Insert new content! Finally!
300300
new_content.push_str(&suggestion.replacement);
301301

302-
// TODO(killercup): better handling of trailing semicolons
303-
if suggestion.text.trim().ends_with(';') && !suggestion.replacement.trim().ends_with(';') {
304-
new_content.push_str(";");
305-
}
306-
307302
// Parts of line after replacement
308303
new_content.push_str(&file_content.lines()
309304
.nth(suggestion.line_range.end.line - 1)

0 commit comments

Comments
 (0)