chore: adapt to latest clippy lints

This commit is contained in:
Amaan Qureshi 2025-01-31 20:11:14 -05:00
parent 51acdf9723
commit dc64bb5395
4 changed files with 6 additions and 6 deletions

View file

@ -2033,5 +2033,5 @@ const fn simple_range(start: usize, end: usize) -> Range {
}
fn chunked_input<'a>(text: &'a str, size: usize) -> impl FnMut(usize, Point) -> &'a [u8] {
move |offset, _| text[offset..text.len().min(offset + size)].as_bytes()
move |offset, _| &text.as_bytes()[offset..text.len().min(offset + size)]
}