mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Use implicit format string capture syntax
This commit is contained in:
1 parent
2710a19ecb
commit
f3a5e9a73c
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user