Fix some clippy lints
This commit is contained in:
parent
b7ebc6b0c1
commit
0ad3dce83a
9 changed files with 28 additions and 33 deletions
|
@ -2401,7 +2401,7 @@ impl StructField<'_> {
|
|||
// Still necessary in couple of places
|
||||
pub fn is_positional(&self) -> bool {
|
||||
let first = self.ident.as_str().as_bytes()[0];
|
||||
first >= b'0' && first <= b'9'
|
||||
(b'0'..=b'9').contains(&first)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue