mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
fix clippy::useless_conversion
This commit is contained in:
parent
451fcd3c79
commit
62ed658311
11 changed files with 25 additions and 29 deletions
|
@ -101,7 +101,7 @@ impl TextEdit {
|
|||
max_total_len = max(max_total_len, total_len);
|
||||
}
|
||||
|
||||
if let Some(additional) = max_total_len.checked_sub(text_size.into()) {
|
||||
if let Some(additional) = max_total_len.checked_sub(text_size) {
|
||||
text.reserve(additional.into());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue