mirror of
https://git.proxmox.com/git/pathpatterns
synced 2025-07-13 20:27:09 +00:00
clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
7e4c3e0987
commit
ca9b0e38e3
@ -192,7 +192,7 @@ impl MatchEntry {
|
||||
pattern_flags: PatternFlag,
|
||||
ty: MatchType,
|
||||
) -> 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)
|
||||
} else {
|
||||
(pattern, ty)
|
||||
|
Loading…
Reference in New Issue
Block a user