clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-07-29 11:56:18 +02:00
parent 7e4c3e0987
commit ca9b0e38e3

View File

@ -192,7 +192,7 @@ impl MatchEntry {
pattern_flags: PatternFlag, pattern_flags: PatternFlag,
ty: MatchType, ty: MatchType,
) -> Result<Self, crate::ParseError> { ) -> Result<Self, crate::ParseError> {
let (pattern, ty) = if pattern.get(0).copied() == Some(b'!') { let (pattern, ty) = if pattern.first().copied() == Some(b'!') {
(&pattern[1..], !ty) (&pattern[1..], !ty)
} else { } else {
(pattern, ty) (pattern, ty)