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
|
@ -987,7 +987,7 @@ fn offset_for_row(s: &str, target: u32) -> (u32, usize) {
|
|||
if row >= target {
|
||||
break;
|
||||
}
|
||||
offset += line.len() as usize;
|
||||
offset += line.len();
|
||||
}
|
||||
(row, offset)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue