mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 13:20:42 +00:00
Return error un unknown algorithm
This commit is contained in:
parent
c42812c4bd
commit
86728997ab
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ impl FromStr for Digest {
|
||||||
"sha3256t" => DigestAlgorithm::SHA3256,
|
"sha3256t" => DigestAlgorithm::SHA3256,
|
||||||
"sha3512t_256" => DigestAlgorithm::SHA3512Half,
|
"sha3512t_256" => DigestAlgorithm::SHA3512Half,
|
||||||
"sha3512t" => DigestAlgorithm::SHA3512,
|
"sha3512t" => DigestAlgorithm::SHA3512,
|
||||||
_ => DigestAlgorithm::Unknown,
|
_ => return Err(DigestError::UnknownAlgorithm {algorithm: String::from(parts[1])}),
|
||||||
},
|
},
|
||||||
hash: String::from(parts[2]),
|
hash: String::from(parts[2]),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue