mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-07 13:41:14 +00: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 {
|
for (variable_name, value) in variables {
|
||||||
// Replace {{variable_name}} by the value
|
// 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);
|
content = content.replace(&pattern, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user