diff options
author | René Kijewski <rene.kijewski@fu-berlin.de> | 2023-02-20 11:46:41 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-02-21 13:16:00 +0100 |
commit | 70c5784a9ebc1e2f9e97d5358c7b686111ea18f4 (patch) | |
tree | 2983982f8a6feaaae9fa5aef0ed3235c981563b4 /askama_derive/src/parser/node.rs | |
parent | 9f3325cbe7901e7d2350c1554029ccaf5ff61621 (diff) | |
download | askama-70c5784a9ebc1e2f9e97d5358c7b686111ea18f4.tar.gz askama-70c5784a9ebc1e2f9e97d5358c7b686111ea18f4.tar.bz2 askama-70c5784a9ebc1e2f9e97d5358c7b686111ea18f4.zip |
Revert "derive: Make Config `'static`"
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/parser/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/parser/node.rs b/askama_derive/src/parser/node.rs index 3bd30d8..9f8b37b 100644 --- a/askama_derive/src/parser/node.rs +++ b/askama_derive/src/parser/node.rs @@ -520,8 +520,8 @@ fn block_node<'a>(i: &'a str, s: &State<'_>) -> IResult<&'a str, Node<'a>> { fn block_comment_body<'a>(mut i: &'a str, s: &State<'_>) -> IResult<&'a str, &'a str> { let mut level = 0; loop { - let (end, tail) = take_until(s.syntax.comment_end.as_str())(i)?; - match take_until::<_, _, Error<_>>(s.syntax.comment_start.as_str())(i) { + let (end, tail) = take_until(s.syntax.comment_end)(i)?; + match take_until::<_, _, Error<_>>(s.syntax.comment_start)(i) { Ok((start, _)) if start.as_ptr() < end.as_ptr() => { level += 1; i = &start[2..]; |