We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af59cd1 + 1afda39 commit baa07a3Copy full SHA for baa07a3
crates/expressions/src/template.rs
@@ -55,7 +55,8 @@ impl Display for Template {
55
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
56
self.parts().try_for_each(|part| match part {
57
Part::Lit(lit) => f.write_str(lit),
58
- Part::Expr(expr) => write!(f, "{{ {expr} }}"),
+ // Rust format strings escape "{" with "{{"", so "{{" becomes "{{{{"
59
+ Part::Expr(expr) => write!(f, "{{{{ {expr} }}}}"),
60
})
61
}
62
0 commit comments