Fix clippy issue

This commit is contained in:
Sam Mohr 2025-01-17 19:15:40 -08:00
parent b8de09d048
commit 7914f0c7d8
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
3 changed files with 6 additions and 3 deletions

View file

@ -4032,15 +4032,15 @@ where
G: Fn(&'a str, Position) -> E,
E: 'a,
{
match state.bytes() {
&[b'o', b'r', ..] => {
match *state.bytes() {
[b'o', b'r', ..] => {
return Ok((
MadeProgress,
OperatorOrDef::BinOp(BinOp::Or),
state.advance(2),
))
}
&[b'a', b'n', b'd', ..] => {
[b'a', b'n', b'd', ..] => {
return Ok((
MadeProgress,
OperatorOrDef::BinOp(BinOp::And),