Skip to content

Commit 687be1b

Browse files
committed
ensure case is same when verifying hashes
1 parent 3989865 commit 687be1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clang-installer/src/downloader/hashing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl HashAlgorithm {
4444
}
4545
progress_bar.finish()?;
4646
let actual = format!("{:x}", hasher.finalize());
47-
if actual == *expected {
47+
if actual == expected.to_ascii_lowercase() {
4848
Ok(())
4949
} else {
5050
Err(DownloadError::HashMismatch {

0 commit comments

Comments
 (0)