Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 81dc4b2

Browse files
committed
Less strict build-rerun-triggering file-finding
1 parent 4282ef5 commit 81dc4b2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

wee_alloc/build.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ fn export_rerun_rules() {
3939
for entry_result in
4040
globwalk::glob("*.{toml,rs}").expect("Could not create a valid rust-file-finding glob")
4141
{
42-
let file = entry_result.expect("Failed to read file information.");
43-
println!("cargo:rerun-if-changed={}", file.path().display());
42+
match entry_result {
43+
Ok(file) => println!("cargo:rerun-if-changed={}", file.path().display()),
44+
Err(e) => println!(
45+
"Failed to read file information for rerun preparation: {:?}",
46+
e
47+
),
48+
}
4449
}
4550
}

0 commit comments

Comments
 (0)