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
|
@ -183,7 +183,7 @@ pub fn grid_point_and_side(
|
|||
let col = min(col, cur_size.last_column());
|
||||
let mut line = (pos.y / cur_size.line_height) as i32;
|
||||
if line > cur_size.bottommost_line() {
|
||||
line = cur_size.bottommost_line().0 as i32;
|
||||
line = cur_size.bottommost_line().0;
|
||||
side = Side::Right;
|
||||
} else if line < 0 {
|
||||
side = Side::Left;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue