Remove unneeded type annotations where inference will do (#7573)

This PR removes some unneeded type annotations where we're able to infer
the type accurately.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-02-08 10:32:08 -05:00 committed by GitHub
parent bd390aabf4
commit 9f4ce7fba5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4698,8 +4698,8 @@ impl Editor {
let mut selections = selections.iter().peekable();
let mut contiguous_row_selections = Vec::new();
let mut new_selections = Vec::new();
let mut added_lines: usize = 0;
let mut removed_lines: usize = 0;
let mut added_lines = 0;
let mut removed_lines = 0;
while let Some(selection) = selections.next() {
let (start_row, end_row) = consume_contiguous_rows(