Skip to content

Commit a9f6d24

Browse files
committed
Add XXH as alias of XXHASH.
1 parent 6c25d5a commit a9f6d24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ pub fn match_algorithm<S: AsRef<str>>(
166166
"sha512_256" | "sha512-256" | "sha512/256" => {
167167
Ok(calculator::SupportedAlgorithm::SHA512_256)
168168
}
169-
"xxhash32" => Ok(calculator::SupportedAlgorithm::XXHASH32),
170-
"xxhash64" => Ok(calculator::SupportedAlgorithm::XXHASH64),
171-
"xxhash3_64" | "xxhash3-64" | "xxhash3/64" => {
169+
"xxhash32" | "xxh32" => Ok(calculator::SupportedAlgorithm::XXHASH32),
170+
"xxhash64" | "xxh64" => Ok(calculator::SupportedAlgorithm::XXHASH64),
171+
"xxh3_64" | "xxh3-64" | "xxh3/64" | "xxhash3_64" | "xxhash3-64" | "xxhash3/64" => {
172172
Ok(calculator::SupportedAlgorithm::XXHASH3_64)
173173
}
174174
_ => Err(format!("Error: Unsupported algorithm: {}", algorithm)),

0 commit comments

Comments
 (0)