mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-20 03:49:54 +00:00
Remove unnecessary UTF-8 conversion in hash parsing (#11110)
## Summary I believe this is a no-op?
This commit is contained in:
parent
d514743b1a
commit
ee31e1f11b
2 changed files with 5 additions and 15 deletions
|
|
@ -109,10 +109,7 @@ impl SimpleHtml {
|
|||
debug!("{err}");
|
||||
Hashes::default()
|
||||
}
|
||||
Err(
|
||||
err
|
||||
@ (HashError::UnsupportedHashAlgorithm(..) | HashError::NonUtf8(..)),
|
||||
) => {
|
||||
Err(err @ HashError::UnsupportedHashAlgorithm(..)) => {
|
||||
// If the URL references a hash, but it's unsupported, error.
|
||||
return Err(err.into());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue