From 10bd615f1402a60fd078bfb547191391469055fb Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 3 Jul 2023 13:45:59 -0700 Subject: [PATCH] need to use the display function for the path or it rebuilds every time --- payment-contracts/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payment-contracts/build.rs b/payment-contracts/build.rs index 52a01972..31b876bc 100644 --- a/payment-contracts/build.rs +++ b/payment-contracts/build.rs @@ -5,7 +5,7 @@ fn main() { // Tell Cargo that if the given file changes, to rerun this build script. glob("./abi/*.json").unwrap().for_each(|x| { if let Ok(x) = x { - println!("cargo:rerun-if-changed={:?}", x); + println!("cargo:rerun-if-changed={}", x.display()); } });