diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-12-08 09:59:46 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-12-08 11:14:39 +0100 |
commit | 95317478ccb9baab3d1797d693e4c33008434b50 (patch) | |
tree | 7865bb50ed6ef74d75a6c8293748dd1215ff8ac5 /askama_shared/src/generator.rs | |
parent | c35a2c02b2c0d6c157779eb19266e1b0ee25bb43 (diff) | |
download | askama-95317478ccb9baab3d1797d693e4c33008434b50.tar.gz askama-95317478ccb9baab3d1797d693e4c33008434b50.tar.bz2 askama-95317478ccb9baab3d1797d693e4c33008434b50.zip |
Use char for patterns where possible
Diffstat (limited to 'askama_shared/src/generator.rs')
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) => { |