We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7fe7f commit 97adfb5Copy full SHA for 97adfb5
lib/kvbm-kernels/build.rs
@@ -101,8 +101,8 @@ fn build_with_prebuilt_kernels() {
101
}
102
103
// Read and validate hashes
104
- let stored_hashes_content =
105
- fs::read_to_string(&md5_path).expect(&format!("Failed to read {}", md5_path.display()));
+ let stored_hashes_content = fs::read_to_string(&md5_path)
+ .unwrap_or_else(|_| panic!("Failed to read {}", md5_path.display()));
106
let stored_hashes: Vec<&str> = stored_hashes_content.lines().collect();
107
108
if stored_hashes.len() != 3 {
0 commit comments