additional use of Self, remove * and & where not needed (#15091)

continuation of #15074.
This commit is contained in:
adamnemecek 2025-08-05 13:19:56 -07:00 committed by GitHub
parent bda9ea957a
commit 3d3856ffd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 71 additions and 71 deletions

View file

@ -164,7 +164,7 @@ impl PortableGlobParser {
}
start_or_slash = false;
} else if c == '\\' {
match *self {
match self {
Self::Pep639 => {
return Err(PortableGlobError::InvalidBackslash {
glob: glob.to_string(),
@ -194,7 +194,7 @@ impl PortableGlobParser {
}
}
} else {
let err = match *self {
let err = match self {
Self::Pep639 => PortableGlobError::InvalidCharacter {
glob: glob.to_string(),
pos,