From 95317478ccb9baab3d1797d693e4c33008434b50 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 8 Dec 2021 09:59:46 +0100 Subject: Use char for patterns where possible --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 738b878..d264897 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -981,7 +981,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { for s in mem::take(&mut self.buf_writable) { match s { Writable::Lit(s) => { - buf_format.write(&s.replace("{", "{{").replace("}", "}}")); + buf_format.write(&s.replace('{', "{{").replace('}', "}}")); size_hint += s.len(); } Writable::Expr(s) => { -- cgit