Fix clippy::needless_borrow lint violations (#36444)
Release Notes: - N/A
This commit is contained in:
parent
eecf142f06
commit
9e0e233319
242 changed files with 801 additions and 821 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue