From f3a5e9a73cb7c1fc5d276b3b7a383ecccaeeb2c8 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Sun, 29 Oct 2023 17:49:57 +0800 Subject: [PATCH] Use implicit format string capture syntax --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index f29159ba..db3cd29c 100644 --- a/build.rs +++ b/build.rs @@ -77,7 +77,7 @@ fn render_template( for (variable_name, value) in variables { // Replace {{variable_name}} by the value - let pattern = format!("{{{{{variable_name}}}}}", variable_name = variable_name); + let pattern = format!("{{{{{variable_name}}}}}"); content = content.replace(&pattern, value); }