Enable clippy::redundant_locals (#8750)
This PR enables the [`clippy::redundant_locals`](https://rust-lang.github.io/rust-clippy/master/index.html#/redundant_locals) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
@@ -8810,7 +8810,6 @@ impl Editor {
|
||||
Ok(i) | Err(i) => i,
|
||||
};
|
||||
|
||||
let right_position = right_position;
|
||||
ranges[start_ix..]
|
||||
.iter()
|
||||
.take_while(move |range| range.start.cmp(&right_position, buffer).is_le())
|
||||
|
||||
Reference in New Issue
Block a user