From 81080812777c7a1998f579908f159e383e3c9a31 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 9 Oct 2019 11:47:53 +0200 Subject: Remove use of deprecated nom macro --- askama_derive/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/parser.rs') diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs index eaa4b62..7769ed4 100644 --- a/askama_derive/src/parser.rs +++ b/askama_derive/src/parser.rs @@ -808,7 +808,7 @@ named_args!(block_node<'a>(s: &'a Syntax<'a>) , Node<'a>>, do_parse!( named_args!(block_comment<'a>(s: &'a Syntax<'a>) , Node<'a>>, do_parse!( call!(tag_comment_start, s) >> pws: opt!(tag!("-")) >> - inner: take_until_s!(s.comment_end) >> + inner: take_until!(s.comment_end) >> call!(tag_comment_end, s) >> (Node::Comment(WS(pws.is_some(), inner.len() > 1 && inner[inner.len() - 1] == b'-'))) )); -- cgit