Fix clippy::needless_borrow lint violations (#36444)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-18 23:54:35 +02:00 committed by GitHub
parent eecf142f06
commit 9e0e233319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
242 changed files with 801 additions and 821 deletions

View file

@ -49,7 +49,7 @@ impl Chunk {
self.chars_utf16 |= slice.chars_utf16 << base_ix;
self.newlines |= slice.newlines << base_ix;
self.tabs |= slice.tabs << base_ix;
self.text.push_str(&slice.text);
self.text.push_str(slice.text);
}
#[inline(always)]
@ -623,7 +623,7 @@ mod tests {
let text = &text[..ix];
log::info!("Chunk: {:?}", text);
let chunk = Chunk::new(&text);
let chunk = Chunk::new(text);
verify_chunk(chunk.as_slice(), text);
for _ in 0..10 {