mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-03 13:14:41 +00:00
additional use of Self, remove * and & where not needed (#15091)
continuation of #15074.
This commit is contained in:
parent
bda9ea957a
commit
3d3856ffd5
14 changed files with 71 additions and 71 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue