mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-22 07:43:39 +01:00
Use implicit format string capture syntax
This commit is contained in:
parent
2710a19ecb
commit
f3a5e9a73c
2
build.rs
2
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user