chore: adapt to latest clippy lints
This commit is contained in:
parent
51acdf9723
commit
dc64bb5395
4 changed files with 6 additions and 6 deletions
|
|
@ -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)]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue