Skip to content

Commit 97adfb5

Browse files
committed
clippy
1 parent 6a7fe7f commit 97adfb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/kvbm-kernels/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ fn build_with_prebuilt_kernels() {
101101
}
102102

103103
// Read and validate hashes
104-
let stored_hashes_content =
105-
fs::read_to_string(&md5_path).expect(&format!("Failed to read {}", md5_path.display()));
104+
let stored_hashes_content = fs::read_to_string(&md5_path)
105+
.unwrap_or_else(|_| panic!("Failed to read {}", md5_path.display()));
106106
let stored_hashes: Vec<&str> = stored_hashes_content.lines().collect();
107107

108108
if stored_hashes.len() != 3 {

0 commit comments

Comments
 (0)