more various clippy fixes

This commit is contained in:
Folkert 2022-08-17 14:32:32 +02:00
parent f3f6f58d09
commit 6aa168ee0b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 8 additions and 8 deletions

View file

@ -1441,7 +1441,7 @@ where
{
debug_assert_ne!(word, b'\n');
move |_arena: &'a Bump, state: State<'a>| match state.bytes().get(0) {
move |_arena: &'a Bump, state: State<'a>| match state.bytes().first() {
Some(x) if *x == word => {
let state = state.advance(1);
Ok((MadeProgress, (), state))