mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Replace unwrap
with ?
in hash generation (#3003)
And add tests to catch it.
This commit is contained in:
parent
8507ba872f
commit
3df8df656b
3 changed files with 68 additions and 3 deletions
|
@ -340,7 +340,7 @@ pub enum HashError {
|
|||
InvalidStructure(String),
|
||||
|
||||
#[error(
|
||||
"Unsupported hash algorithm (expected `md5`, `sha256`, `sha384`, or `sha512`) on: {0}"
|
||||
"Unsupported hash algorithm: `{0}` (expected one of: `md5`, `sha256`, `sha384`, or `sha512`)"
|
||||
)]
|
||||
UnsupportedHashAlgorithm(String),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue