Enable clippy::useless_conversion
(#8724)
This PR enables the [`clippy::useless_conversion`](https://rust-lang.github.io/rust-clippy/master/index.html#/useless_conversion) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
87efb75e53
commit
4b81b15cad
21 changed files with 44 additions and 44 deletions
|
@ -1421,7 +1421,7 @@ fn insert_newlines_between_ranges(
|
|||
if range_a.end_point.row < range_b.start_point.row {
|
||||
let end_point = start_point + Point::from_ts_point(range_a.end_point);
|
||||
let line_end = Point::new(end_point.row, text.line_len(end_point.row));
|
||||
if end_point.column as u32 >= line_end.column {
|
||||
if end_point.column >= line_end.column {
|
||||
range_a.end_byte += 1;
|
||||
range_a.end_point.row += 1;
|
||||
range_a.end_point.column = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue